<div dir="ltr">I tried doing that earlier, I was getting empty vtkImage at the output of the function, no matter what I did inside it.<br><br>- Prathamesh<br><br><div class="gmail_quote">On Fri, Oct 22, 2010 at 12:41 PM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">On Fri, Oct 22, 2010 at 1:34 PM, Prathamesh Kulkarni<br>
&lt;<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>&gt; wrote:<br>
&gt; If I change that, I get the following error:<br>
&gt; error C2440: &#39;type cast&#39; : cannot convert from &#39;void *&#39; to<br>
&gt; &#39;itk::SmartPointer&lt;TObjectType&gt;&#39;<br>
&gt; 1&gt;        with<br>
&gt; 1&gt;        [<br>
&gt; 1&gt;            TObjectType=itk::Image&lt;PixelType,2&gt;<br>
&gt; 1&gt;        ]<br>
&gt; 1&gt;        No constructor could take the source type, or constructor overload<br>
&gt; resolution was ambiguous<br>
&gt;<br>
<br>
</div>Get rid of the vtkSmartPointer on the output of the itktovtk filter.<br>
<font color="#888888"><br>
John<br>
</font></blockquote></div><br></div>