%Normalization for ploting image

function y=normalize(x);

colors=256; 
minval=min (min (x));
maxval=max (max (x));
y=round ((x-minval)/(maxval-minval)*(colors-1));

