I have a .raw image file that is encoded as uint16. When I open it in ImageJ, I can see the image dimensions immediately.
Now, when I use MATLAB, I use fid = fopen('image1.raw') pixelData = fread(fid,'uint16') fclose(fid)
Now, I have the data in MATLAB, but I have to use ImageJ to get the dimensions of the image to reshape pixelData. How does ImageJ get the dimensions and how can I do the same in MATLAB?