MATLAB: How to save the reflectance output that have value range [0-1] to TIF image in Matlab

save output [0-1]tif image

I am converting Digital number Landsat 8 image to TOA reflectance and got the output. I use imwrite to save them to TIF images. However, their value are changed into [0 -255]. How can I save to TIF file without any change? Help me!

Best Answer

  • And discussion:
    https://www.mathworks.com/matlabcentral/answers/307519-image-file-saved-using-tiff-library-tif-appear-white-in-explorer-and-paintbrush#answer_239772
    https://www.mathworks.com/matlabcentral/answers/319702-reading-pixels-as-floating-point-values#answer_249968