Possible Duplicate:
imagesc plot to matrix in matlab
Scale Matrix to a new range
I have:
I = imread('image.tif');
At this point I can easly print the pixel with cord 100,100 by doing I(100,100)
Now I scale to image to fit the range 0.5...0.9
imagesc(I,[0.5 0.9]);
colormap('gray');
Is there any way to get the new matrix I ? (with pixel values from 0.5 to 0.9)
If i do
I = imagesc(I,[0.5 0.9]);
I only get the handler to image object