[vtkusers] vtkImageData DeepCopy problem

chasank chasank at gmail.com
Tue Jul 2 12:42:59 EDT 2013


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.



More information about the vtkusers mailing list