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

Prathamesh Kulkarni prathameshmkulkarni at gmail.com
Fri Oct 22 13:50:13 EDT 2010


I tried doing that earlier, I was getting empty vtkImage at the output of
the function, no matter what I did inside it.

- Prathamesh

On Fri, Oct 22, 2010 at 12:41 PM, John Drescher <drescherjm at gmail.com>wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20101022/bed97b06/attachment.htm>


More information about the Insight-users mailing list