Script try_imagesc.m
Download Script try_imagesc.m
[x map]=imread('clown','bmp');
x;
X1S=size(x);
image(x)
info8=imfinfo('clown','bmp')
C1=colormap(map);
C1S=size(C1)
%%
figure
h=imagesc(x)
info9=imfinfo('clown','bmp')
X2S=size(x);
C2=colormap(gray);
C2S=size(C2);
%%
% Next image has values between 20 and 40 of x scaled
% to the full range of the gray colormap C
figure
lim = [20 40];
imagesc(x,lim)
X4S=size(x)
C4=colormap(gray);
C4S=size(C4)

Back