<HTML><HEAD>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.18365"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Segoe UI">
<DIV>Bill, thanks I knew it would be simple. I was looking for something like that using the -> operator and obviously didn't see it. Thanks for the help.</DIV>
<DIV> </DIV>
<DIV>Kent</DIV>
<DIV><BR><BR>>>> Bill Lorensen <bill.lorensen@gmail.com> 3/4/2014 3:29 PM >>><BR>Try<BR>viewer.AddImage(image.GetPointer());<BR><BR>On Tue, Mar 4, 2014 at 2:34 PM, Kent Ogden <ogdenk@upstate.edu> wrote:<BR>> All,<BR>><BR>> I am trying to do something simple that is not working, I think this may be<BR>> very simple but I'm stuck at the moment. I would like to create an<BR>> itk::Image to store the results of a segmentation, so that I can change the<BR>> seed point and re-run the segmentation without losing the initial results.<BR>> I am using the DeepCopy example to create a copy of the segmentation filter<BR>> output, this seems to work OK.<BR>><BR>> I run into problems when I try to use that image as input to a quickview<BR>> object. A modified version of the Quickview demo will illustrate the<BR>> problem:<BR>><BR>> #include "QuickView.h"<BR>> int main(int argc, char *argv[])<BR>> {<BR>> typedef itk::Image< short, 2> ImageType;<BR>><BR>> typedef itk::ImageFileReader<ImageType> ReaderType;<BR>> ReaderType::Pointer reader = ReaderType::New();<BR>> reader->SetFileName("d:\\CTChest.dcm");<BR>><BR>> ImageType::Pointer image = reader->GetOutput();<BR>><BR>> QuickView viewer;<BR>> viewer.AddImage(image);<BR>> viewer.Visualize();<BR>><BR>> return EXIT_SUCCESS;<BR>> }<BR>><BR>> This will not compile, the error is at the viewer.AddImage() line and says<BR>><BR>> "could not deduce template argument for 'TImage *' from<BR>> 'itk::SmartPointer<TObjectType>'<BR>><BR>> Can someone explain this to me, and is there a way around this? Thanks . .<BR>> .<BR>><BR>> Kent<BR>><BR>><BR>> _____________________________________<BR>> Powered by www.kitware.com<BR>><BR>> Visit other Kitware open-source projects at<BR>> <A href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</A><BR>><BR>> Kitware offers ITK Training Courses, for more information visit:<BR>> <A href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</A><BR>><BR>> Please keep messages on-topic and check the ITK FAQ at:<BR>> <A href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</A><BR>><BR>> Follow this link to subscribe/unsubscribe:<BR>> <A href="http://www.itk.org/mailman/listinfo/insight-users">http://www.itk.org/mailman/listinfo/insight-users</A><BR>><BR><BR><BR><BR>--<BR>Unpaid intern in BillsBasement at noware dot com<BR></DIV></BODY></HTML>