[Insight-users] How to read PNG file

Luis Ibanez luis . ibanez at kitware . com
Sun, 31 Aug 2003 10:48:34 -0400


Hi Eiii,


1) Please make sure that the extension of the filename is ".png"
    ITK relies on the filename extension for a first recognition
    of a file format.

2) There were some issues with the Analyze reader in ITK 1.2 that
    consufed other readers. This has been fixed since then.

3) ITK 1.4 is about to be released. The current state of the CVS
    repository reflects the content of the release 1.4.
    I would strongly suggest you to get the CVS version and use it
    instead of the ITK 1.2 version.

    You will find instructions for CVS download in the SoftwareGuide
    http://www . itk . org/ItkSoftwareGuide . pdf

    Section 1.4, page-pdf 31.



Regards,



    Luis



-----------------
宋涛 wrote:
> Hi All
> 
> I create some png files in "unsigned char" pixel type,but when I want to read the
> se files in "float" pixel type, i get some error below:
> -----------------------------------------------------------------------
> ExceptionObject caught !
> 
> itk::ExceptionObject (00EDFDE8)
> Location: "Unknown"
> File: E:\Program Files\SDK_2\ITK\InsightToolkit-1.2.0\Code\IO\itkAnalyzeImageIO.
> cxx
> Line: 1002
> Description: File cannot be read
> -----------------------------------------------------------------------
> 
> How can i solve this problom? 
> 
> Thank you very much!
> 
> ==============================================
> *安全稳定大容量,收费伊妹儿免费30日完美体验~* <http://vip . 163 . com>
> *中国最大的免费邮箱在等你 25兆空间 4兆附件!* <http://mail . 163 . com>
> *点击网易泡泡惊喜无限 全免费手机短信任你发!* <http://popo . 163 . com>
>