[Insight-users] [vtkusers] cannot return output of itk::ImageToVTKImageFilter

John Drescher drescherjm at gmail.com
Fri Oct 22 13:41:27 EDT 2010


On Fri, Oct 22, 2010 at 1:34 PM, Prathamesh Kulkarni
<prathameshmkulkarni at gmail.com> wrote:
> If I change that, I get the following error:
> error C2440: 'type cast' : cannot convert from 'void *' to
> 'itk::SmartPointer<TObjectType>'
> 1>        with
> 1>        [
> 1>            TObjectType=itk::Image<PixelType,2>
> 1>        ]
> 1>        No constructor could take the source type, or constructor overload
> resolution was ambiguous
>

Get rid of the vtkSmartPointer on the output of the itktovtk filter.

John


More information about the Insight-users mailing list