[Insight-users] problems with QuickView

Prathamesh Kulkarni prathameshmkulkarni at gmail.com
Tue Sep 20 12:40:28 EDT 2011


Doing this gives me a linking error.

Now, from the Quickview.cxx file, I  see that it is designed only for
rendering 2D data (but my ImageType is itk::Image<float, 3>). Is this
correct?

Prathamesh

On Tue, Sep 20, 2011 at 11:32 AM, David Doria <daviddoria at gmail.com> wrote:

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


More information about the Insight-users mailing list