function out = renorm(img)

out = (img - min(img(:)))/(max(img(:) - min(img(:))));