<!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="Bookman Old Style">Hi,</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">I use itkVTKImageToImageFilter to convert 
itkImage to vtkImage.</FONT></DIV>
<DIV><FONT face="Bookman Old Style"></FONT>&nbsp;</DIV>
<DIV><FONT face="Bookman Old Style">typedef 
itk::VTKImageToImageFilter&lt;ImageType_Short&gt; 
VTKToITKConnectorType;</FONT></DIV>
<DIV><FONT face="Bookman Old Style">&nbsp;</DIV>
<DIV>VTKToITKConnectorType::Pointer connector&nbsp;= 
VTKToITKConnectorType::New();</DIV>
<DIV>&nbsp;</DIV>
<DIV>connector-&gt;SetInput(testVtkImage);</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;try<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;connector&nbsp;-&gt;Update();<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;catch( 
itk::ExceptionObject &amp; excp 
)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;std::cerr 
&lt;&lt; "Error reading the series " &lt;&lt; 
std::endl;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;std::cerr &lt;&lt; excp 
&lt;&lt; std::endl;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</DIV>
<DIV>&nbsp;</DIV>
<DIV>ImageType_Short::Pointer testItkImage = connector-&gt;GetOutput();</DIV>
<DIV>&nbsp;</DIV>
<DIV>However, the error is:</DIV>
<DIV>&nbsp;</DIV>
<DIV>error C2679: binary '=' : no operator defined which takes a right-hand 
operand of type 'const class itk::Image&lt;short,3&gt; *' (or there is no 
acceptable conversion)</DIV>
<DIV>&nbsp;</DIV>
<DIV>How to convert itk::Image&lt;short,3&gt; * to itk::Image&lt;short,3&gt; 
::Pointer?</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>Yixun<BR></DIV>
<DIV>&nbsp;</DIV>
<DIV><BR>&nbsp;</DIV></FONT></BODY></HTML>