[Insight-developers] Open image from file format

German Falasco gfalasco at fleni.org.ar
Wed Jul 18 10:59:18 EDT 2007


Hi,
 i´m having a problem when i try to load a simple image from a file.

The code compile perfect, but when it try to pass the file name to create the image it throws an error message (null pointer!) in the lines of "itkImageFileReader.txx":

 if ( m_UserSpecifiedImageIO == false ) //try creating via factory
    {
    m_ImageIO = ImageIOFactory::CreateImageIO( m_FileName.c_str(), ImageIOFactory::ReadMode );
    }


The file name is passed whit this format: "C:\\filename.ext", also i try whit other convinations like: "C:\filename.ext", "C:/filename.ext" and "C://filename.ext" whit no success.

I, also try to open a simple DICOM slice having the same error problem.

If sombody can helpme i´ll appreciate.

Germán


Eng. Germán A. Falasco 
FLENI, Dpto Bioingeniería 
Montañeses 2325 (C1428AQK) 
Tel: 054-11-5777-3200 (int:2961) 
Fax: 054-11-5777-3209 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.itk.org/mailman/private/insight-developers/attachments/20070718/b6451604/attachment.html


More information about the Insight-developers mailing list