Info

This question is closed. Reopen it to edit or answer.

Opening an image (.raw, other properties in body) in matlab

1 view (last 30 days)
Hi all,
As a prelude, I'd like to say that I'm a complete Matlab novice! Right. So I'm trying to open a .raw, 16 bit unsigned, 9728 wide and 9265 high image. It has little endean byte order. I've read a few other questions regarding images and it seems that some of them miss vital information so let me know if I've overlooked any info I need to give you all. I've tried:
a = imfinfo('[T:\...\pinhole_1-8_4s.raw]')
(note: the "..." in the file location represents more folders in the file path that I did write in, in the actual code) but this gave back:
Error using imfinfo (line 112)
Unable to determine file format.
I've also tried:
a = imread('[file location]')
but I got back:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space.
(and then a lot more lines of red text)
I tried changing java heap memory in the preferences to the max 482 Mb to no avail, even though the file size is 176 Mb. Help? I have I feeling I'm overlooking something really silly, like the way I've written my file path is wrong or something.
Best regards,
Guy
  1 Comment
Geoff Hayes
Geoff Hayes on 18 Nov 2014
Guy - is there any particular format for this image (jpeg, bmp, etc.), or is it just a (2D) 9265x9728 grayscale image? What does raw mean to you?

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!