[vtkusers] vtkImageData DeepCopy problem

Bill Lorensen bill.lorensen at gmail.com
Tue Jul 2 13:04:30 EDT 2013


Can you provide a small, self contained, cut/paste  c++ example that
illustrates the problem? Only itk/vtk code. Uses a generated image not a
file.



On Tue, Jul 2, 2013 at 12:42 PM, chasank <chasank at gmail.com> wrote:

> Hi all,
>
> We use VTK6.0.0 and ITK4.4.0. We have a problem about DeepCopy method of
> vtkImageData. Here is our code:
>
> itk::ImageToVTKImageFilter< itk::Image< signed short, 3 > >::Pointer
> converter = itk::ImageToVTKImageFilter< itk::Image< signed short, 3 >
> >::New();
> ......
>
> vtkSmartPointer< vtkImageData > vtkImage = vtkSmartPointer< vtkImageData
> >::New();
> vtkImage->DeepCopy(converter->GetOutput());
>
> After DeepCopy operation, scalar ranges of vtkImage and
> converter->GetOutput() are different. Does'nt DeepCopy copy the value of
> scalar range to vtkImage's scalar range? Is there a way that all class
> members of converter->GetOutput() are copied to vtkImage correctly and
> completely?
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/vtkImageData-DeepCopy-problem-tp5721727.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>



-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130702/162eb609/attachment.htm>


More information about the vtkusers mailing list