<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hello, All,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I have some problem with reading PNG files.
When I run my code, a "Runtime Error" will occur.</FONT></DIV>
<DIV><FONT face=Arial size=2>My code is simple and showed as
follows:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>typedef itk::Image<unsigned short,2>
InternalImageType;<BR>typedef itk::ImageFileReader< InternalImageType
> ImageReaderType;</FONT></DIV>
<DIV><FONT face=Arial size=2>ImageReaderType::Pointer
ImageReader;</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2> ImageReader=ImageReaderType::New();<BR> ImageReader->SetFileName("med.png");<BR> ImageReader->Update();</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>The image is created by the Windows tool
"Paint" and saved as "png" file.</FONT></DIV>
<DIV><FONT face=Arial size=2>Could some one shed light on it? Thank
you!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Bests,</FONT></DIV>
<DIV><FONT face=Arial size=2>Jianfeng </FONT></DIV></BODY></HTML>