How to open a 12-bit .raw image file from Matlab
Hello guys,
Firt timer here asking a question. I have a 12-bit .raw image file save from our experiment – this normall consist of up to 10,000 frames.
I am trying to us matlab to read this .raw file and reconstruct it back into frame images, e.g. Tiff ones. But, as you may expect already, I kept on failing. I have attached a single frame example here.
What I tried is to reconstruct this single frame first.
file=fopen(‘Example.raw’,’r’);
ImgFile=fread(file,’*ubit12′);
Just to read this what I got is a 2621440×1 single array unit 16. My image is 1280×1024, so for some reason I dont know, the element count doubled. I tried some method to pick 1310720 elements out and use reshape to get an image, but never got what I need.
Some assistance here would be greatly appreciated. cheersHello guys,
Firt timer here asking a question. I have a 12-bit .raw image file save from our experiment – this normall consist of up to 10,000 frames.
I am trying to us matlab to read this .raw file and reconstruct it back into frame images, e.g. Tiff ones. But, as you may expect already, I kept on failing. I have attached a single frame example here.
What I tried is to reconstruct this single frame first.
file=fopen(‘Example.raw’,’r’);
ImgFile=fread(file,’*ubit12′);
Just to read this what I got is a 2621440×1 single array unit 16. My image is 1280×1024, so for some reason I dont know, the element count doubled. I tried some method to pick 1310720 elements out and use reshape to get an image, but never got what I need.
Some assistance here would be greatly appreciated. cheers Hello guys,
Firt timer here asking a question. I have a 12-bit .raw image file save from our experiment – this normall consist of up to 10,000 frames.
I am trying to us matlab to read this .raw file and reconstruct it back into frame images, e.g. Tiff ones. But, as you may expect already, I kept on failing. I have attached a single frame example here.
What I tried is to reconstruct this single frame first.
file=fopen(‘Example.raw’,’r’);
ImgFile=fread(file,’*ubit12′);
Just to read this what I got is a 2621440×1 single array unit 16. My image is 1280×1024, so for some reason I dont know, the element count doubled. I tried some method to pick 1310720 elements out and use reshape to get an image, but never got what I need.
Some assistance here would be greatly appreciated. cheers image processing, .raw, image analysis MATLAB Answers — New Questions