Importing multiple RAW images contained in a .seq file?

7 views (last 30 days)
I am using the Image processing toolbox V 8.1 to import RAW image files. These files are coming off of a medical scanner in RAW format, and are saved as a sequence of images (.seq file). I would like to be able to import all of the images in the .seq file.
I was able to use fread to import only the first image in the sequence file, but for some reason when I use imshow to view the result, about 25% of the image is cut off. The dimensions of the cut off image are the same as what the dimensions of the original image would be. Here is my code using fread that only imports one image from the .seq file:
fid=fopen('holes_5frames.seq');
img2 = fread(fid,[1536 2048],'uint16=>uint16');
Is there a way to use fread to import a 3-dimensional matrix with all the images in the .seq file? Can anyone explan why Matlab is cutting off the image? There is an off-set of 2048, but I'm not sure how to incorporate that in the code. Some information on the images: 1536 x 2048 pixels, 16 bits per pixel, unsigned integer.
Thank you for any help!

Answers (0)

Categories

Find more on Large Files and Big Data in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!