<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV>Hi all again !</DIV>
<DIV> </DIV>
<DIV>I have pointed out the bug when updating the ImageFileReader (thanks
Iván).</DIV>
<DIV> </DIV>
<DIV><EM>typedef unsigned char PixelComponentType;</EM></DIV>
<DIV><EM>typedef itk::RGBPixel< PixelComponentType >
RGBPixelType;</EM></DIV>
<DIV><EM>const unsigned int Dimension = 2;</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>typedef itk::Image< RGBPixelType, Dimension >
RGBImageType;</EM></DIV>
<DIV><EM>typedef itk::ImageFileReader< RGBImageType >
ReaderType;</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>ReaderType::Pointer reader = ReaderType::New();</EM></DIV>
<DIV><EM>reader->SetFileName("D:\personal\fvazquez\imagenes\5.jpg");</EM></DIV>
<DIV><EM></EM> </DIV>
<DIV><EM>try</EM></DIV>
<DIV><EM> {</EM></DIV>
<DIV><EM> reader->Update();</EM></DIV>
<DIV><EM> }</EM></DIV>
<DIV><EM>catch(itk::ExceptionObject &err)</EM></DIV>
<DIV><EM> {</EM></DIV>
<DIV><EM> CString msg;</EM></DIV>
<DIV><EM> msg.Format("%s", err.GetDescription());</EM></DIV>
<DIV><EM> MessageBox(NULL, msg, "Error",
MB_ICONINFORMATION);</EM></DIV>
<DIV><EM> } </EM></DIV>
<DIV> </DIV>
<DIV>When the program reach the "<EM>reader->Update();</EM>" it crashes. The
ExceptionObject shown in the messagebox is: <EM>"The file doesn't exist.
D:\personal\fvazquez\imagenes\5.jpg",</EM> or more exactly: <EM>"The
file doesn't exist. D:personalvazquezimagenes.jpg",</EM> with some characters
missing or wrong. </DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV>However the image file exists and the full path is correct, I'm quite
sure!. In my previous mail I write you an incomplete path (thanks Luis) but
it was right typed in the code. </DIV>
<DIV> </DIV>
<DIV>Any ideas?.</DIV>
<DIV> </DIV>
<DIV>Thanks in advance.</DIV></BODY></HTML>