<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Hi every:</DIV>
<DIV>&nbsp;</DIV>
<DIV>When I read a vtk image file,an error was gotten:</DIV>
<DIV>ExceptionObject caught !</DIV>
<DIV>itk::ExceptionObject (011DF248)<BR>Location: "unknown"<BR>File: D:\ITK\ITK1\Code\IO\itkVTKImageIO.cxx<BR>Line: 193<BR>Description: itk::ERROR: VTKImageIO(01735440): Not structured points, can't read</DIV>
<DIV>&nbsp;</DIV>
<DIV>Here is my programme:</DIV>
<DIV><BR>#if defined(_MSC_VER)<BR>#pragma warning ( disable : 4786 )<BR>#endif</DIV>
<DIV>#ifdef __BORLANDC__<BR>#define ITK_LEAN_AND_MEAN<BR>#endif<BR>#include "itkImageFileReader.h"<BR>#include "itkImageFileWriter.h"<BR>#include "itkVTKImageIO.h"<BR>#include "itkImage.h"<BR>const unsigned int myDimension = 3;<BR>typedef itk::Image&lt;float, myDimension&gt; FloatImageType;<BR>int main()<BR>{<BR>&nbsp; itk::VTKImageIO::Pointer vtkIO;<BR>&nbsp; vtkIO = itk::VTKImageIO::New();<BR>&nbsp; itk::ImageFileReader&lt;FloatImageType&gt;::Pointer reader;<BR>&nbsp; reader = itk::ImageFileReader&lt;FloatImageType&gt;::New();<BR>&nbsp; reader-&gt;SetImageIO(vtkIO);<BR>&nbsp; reader-&gt;SetFileName("sphere.vtk");<BR>&nbsp; try <BR>&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp; reader-&gt;Update(); <BR>&nbsp;&nbsp;&nbsp; } <BR>&nbsp; catch( itk::ExceptionObject &amp; err ) <BR>&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; "ExceptionObject caught !" &lt;&lt; std::endl; <BR>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; err &lt;&lt; std::endl; <BR>&nbsp;&nbsp;&nbsp; return EXIT_FAILURE;<BR>&nbsp;&nbsp;&nbsp; } <BR>&nbsp; itk::VTKImageIO::Pointer vtkIO2;<BR>&nbsp; vtkIO2 = itk::VTKImageIO::New();</DIV>
<DIV>&nbsp; itk::ImageFileWriter&lt;FloatImageType&gt;::Pointer writer;<BR>&nbsp; writer = itk::ImageFileWriter&lt;FloatImageType&gt;::New();<BR>&nbsp; writer-&gt;SetInput(reader-&gt;GetOutput());<BR>&nbsp; writer-&gt;SetFileName("sphere2.vtk");<BR>&nbsp; writer-&gt;SetImageIO(vtkIO2);<BR>&nbsp;try <BR>&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp; writer-&gt;Update(); <BR>&nbsp;&nbsp;&nbsp; } <BR>&nbsp; catch( itk::ExceptionObject &amp; err ) <BR>&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; "ExceptionObject caught !" &lt;&lt; std::endl; <BR>&nbsp;&nbsp;&nbsp; std::cerr &lt;&lt; err &lt;&lt; std::endl; <BR>&nbsp;&nbsp;&nbsp; return EXIT_FAILURE;<BR>&nbsp;&nbsp;&nbsp; } <BR>&nbsp; return EXIT_SUCCESS;<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thank you for your help!</DIV><br><!-- footer --><br><hr>
<a style="font-size:14px;line-height:15px; color:#000; text-decoration:none" href="http://www.126.com/" target="_blank"><span style="text-decoration:underline; color:blue">Ô¶ÀëÀ¬»øÓʼþ£¿Ãâ·Ñ°ïÄã¹ýÂË98£¥µÄÀ¬»øÓʼþ£¡</span><span style="font-family:Tahoma; text-decoration:underline; color:blue">>></span> </a>