Reputation: 31
I have a modis tiff image of size 2000 by 4059, with int16
values. I want to multiply the image by scale factor of 0.0001 to get reflectance in Matlab.
Upvotes: 3
Views: 387
Reputation: 114926
As @zplesivcak said:
img = imread( 'myModisImg.tiff' ); %// img should be 2000x4059 array of type uint16
img = im2double( img ); %// now img is of type double in the range [0..1]
rimg = img * 0.0001; %// multiply each pixel by 0.0001
Upvotes: 1