<div dir="ltr">Doing this gives me a linking error. <div><br></div><div>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?<div>
<br></div><div>Prathamesh<br><div><br><div class="gmail_quote">On Tue, Sep 20, 2011 at 11:32 AM, David Doria <span dir="ltr"><<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Sep 20, 2011 at 12:28 PM, Prathamesh Kulkarni<br>
<<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I am trying to render a volume using QuickView as given<br>
> in <a href="http://www.vtk.org/Wiki/ITK/Examples/QuickView" target="_blank">http://www.vtk.org/Wiki/ITK/Examples/QuickView</a> . I have also built the<br>
> ItkVtkGlue. Following is my code snippet:<br>
> ImageType3D::Pointer data_ptr = getImageData();<br>
> QuickView viewer;<br>
> viewer.AddImage(data_ptr);<br>
> viewer.Visualize();<br>
> I am getting the foll<br>
</div>Thanks,<br>
<br>
David<br>
<div class="im"><br>
<br>
<br>
On Tue, Sep 20, 2011 at 12:28 PM, Prathamesh Kulkarni<br>
<<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I am trying to render a volume using QuickView as given<br>
> in <a href="http://www.vtk.org/Wiki/ITK/Examples/QuickView" target="_blank">http://www.vtk.org/Wiki/ITK/Examples/QuickView</a> . I have also built the<br>
> ItkVtkGlue. Following is my code snippet:<br>
> ImageType3D::Pointer data_ptr = getImageData();<br>
> QuickView viewer;<br>
> viewer.AddImage(data_ptr);<br>
> viewer.Visualize();<br>
> I am getting the foll<br>
</div>Thanks,<br>
<br>
David<br>
<div><div></div><div class="h5"><br>
<br>
<br>
On Tue, Sep 20, 2011 at 12:28 PM, Prathamesh Kulkarni<br>
<<a href="mailto:prathameshmkulkarni@gmail.com">prathameshmkulkarni@gmail.com</a>> wrote:<br>
><br>
> Hello,<br>
> I am trying to render a volume using QuickView as given<br>
> in <a href="http://www.vtk.org/Wiki/ITK/Examples/QuickView" target="_blank">http://www.vtk.org/Wiki/ITK/Examples/QuickView</a> . I have also built the<br>
> ItkVtkGlue. Following is my code snippet:<br>
> ImageType3D::Pointer data_ptr = getImageData();<br>
> QuickView viewer;<br>
> viewer.AddImage(data_ptr);<br>
> viewer.Visualize();<br>
> I am getting the following error:<br>
> error C2784: 'void QuickView::AddImage(TImage *,bool,std::string)' : could<br>
> not deduce template argument for 'TImage *' from<br>
> 'itk::SmartPointer<TObjectType>'<br>
> Any help would be appreciated.<br>
><br>
> Thanks,<br>
> Prathamesh<br>
<br>
</div></div>Try this:<br>
<br>
viewer.AddImage<ImageType3D>(data_ptr);<br>
<font color="#888888"><br>
David<br>
</font></blockquote></div><br></div></div></div></div>