www.pudn.com > snake_program.rar > imdisp.m
function imdisp(I)
% imdisp(I) - scale the dynamic range of an image and display it.
x = (0:255)./255;
grey = [x;x;x]';
minI = min(min(I));
maxI = max(max(I));
I = (I-minI)/(maxI-minI)*255;
image(I);
axis('square','off');
colormap(gray(256));