I am trying to read an ENVI image (.RAW) into MATLAB using the
commands below. The new image does not resemble the original image.
The size of my image is [10322,1600]. Data type is float. Has anyone
done this before? Thanks!
fid=fopen('a1_bk_sapph.raw','r');
img=fread(fid,[10322,1600],'float32');
frewind(fid);
fclose(fid);