[Insight-users] How to read PNG file

宋涛 prog_st at 163 . com
Sat, 30 Aug 2003 21:46:21 +0800 (CST)


--Boundary-=_kneWZmLpkZWbErPeokXxAZzaStsj
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

Hi All

I create some png files in "unsigned char" pixel type,but when I want to read these 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!
--Boundary-=_kneWZmLpkZWbErPeokXxAZzaStsj
Content-Type: text/html
Content-Transfer-Encoding: 8bit

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

--Boundary-=_kneWZmLpkZWbErPeokXxAZzaStsj--