[Insight-users] File IO ITK

Wen Shi wsa18 at sfu.ca
Thu Mar 5 00:57:26 EST 2009


Hi Guys,


I just have a question about file IO.
How to specify the image file you want to process in the code?
In softwareGuide C4 it says
reader->SetFileName(filename);
Then I tried to set the filename to be the one  I want to process like "raw_mhd", I put the image file in the same directory as the source files.
But the program doesn't recognize it, the error is
Could not create IO object for file raw_mhd.

Is there anything I need to address before assign the file name to SetFile()?
Thanks a lot

Wen Shi


More information about the Insight-users mailing list