[Insight-users] Runtime error about"itkimagefilereader"

Andinet Enquobahrie andinet.enqu at kitware.com
Sun Oct 22 09:52:03 EDT 2006


Jianfeng Xu at UIUC wrote:

> Hello, All,

What is the runtime error you are getting? Give us the details...

> I have some problem with reading PNG files. When I run my code, a
> "Runtime Error" will occur.
> My code is simple and showed as follows:
> typedef itk::Image<unsigned short,2> InternalImageType;
> typedef itk::ImageFileReader< InternalImageType > ImageReaderType;
> ImageReaderType::Pointer ImageReader;
> ImageReader=ImageReaderType::New();
> ImageReader->SetFileName("med.png");
> ImageReader->Update();
> The image is created by the Windows tool "Paint" and saved as "png" file.
> Could some one shed light on it? Thank you!
> Bests,
> Jianfeng
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>  
>



More information about the Insight-users mailing list