<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"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></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>
<<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>> wrote:<br>
> If I change that, I get the following error:<br>
> error C2440: 'type cast' : cannot convert from 'void *' to<br>
> 'itk::SmartPointer<TObjectType>'<br>
> 1> with<br>
> 1> [<br>
> 1> TObjectType=itk::Image<PixelType,2><br>
> 1> ]<br>
> 1> No constructor could take the source type, or constructor overload<br>
> resolution was ambiguous<br>
><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>