user2007408
user2007408

Reputation: 31

Modis image processing

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

Answers (1)

Shai
Shai

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

Related Questions