[Insight-users] problems with QuickView

David Doria daviddoria at gmail.com
Tue Sep 20 12:32:21 EDT 2011


On Tue, Sep 20, 2011 at 12:28 PM, Prathamesh Kulkarni
<prathameshmkulkarni at gmail.com> wrote:
>
> Hello,
> I am trying  to render a volume using QuickView as given
> in http://www.vtk.org/Wiki/ITK/Examples/QuickView . I have also built the
>  ItkVtkGlue. Following is my code snippet:
>         ImageType3D::Pointer data_ptr = getImageData();
> QuickView viewer;
> viewer.AddImage(data_ptr);
> viewer.Visualize();
> I am getting the foll
Thanks,

David



On Tue, Sep 20, 2011 at 12:28 PM, Prathamesh Kulkarni
<prathameshmkulkarni at gmail.com> wrote:
>
> Hello,
> I am trying  to render a volume using QuickView as given
> in http://www.vtk.org/Wiki/ITK/Examples/QuickView . I have also built the
>  ItkVtkGlue. Following is my code snippet:
>         ImageType3D::Pointer data_ptr = getImageData();
> QuickView viewer;
> viewer.AddImage(data_ptr);
> viewer.Visualize();
> I am getting the foll
Thanks,

David



On Tue, Sep 20, 2011 at 12:28 PM, Prathamesh Kulkarni
<prathameshmkulkarni at gmail.com> wrote:
>
> Hello,
> I am trying  to render a volume using QuickView as given
> in http://www.vtk.org/Wiki/ITK/Examples/QuickView . I have also built the
>  ItkVtkGlue. Following is my code snippet:
>         ImageType3D::Pointer data_ptr = getImageData();
> QuickView viewer;
> viewer.AddImage(data_ptr);
> viewer.Visualize();
> I am getting the following error:
> error C2784: 'void QuickView::AddImage(TImage *,bool,std::string)' : could
> not deduce template argument for 'TImage *' from
> 'itk::SmartPointer<TObjectType>'
> Any help would be appreciated.
>
> Thanks,
> Prathamesh

Try this:

viewer.AddImage<ImageType3D>(data_ptr);

David


More information about the Insight-users mailing list