<div dir="ltr">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.<br><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Jul 2, 2013 at 12:42 PM, chasank <span dir="ltr"><<a href="mailto:chasank@gmail.com" target="_blank">chasank@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi all,<br>
<br>
We use VTK6.0.0 and ITK4.4.0. We have a problem about DeepCopy method of<br>
vtkImageData. Here is our code:<br>
<br>
itk::ImageToVTKImageFilter< itk::Image< signed short, 3 > >::Pointer<br>
converter = itk::ImageToVTKImageFilter< itk::Image< signed short, 3 ><br>
>::New();<br>
......<br>
<br>
vtkSmartPointer< vtkImageData > vtkImage = vtkSmartPointer< vtkImageData<br>
>::New();<br>
vtkImage->DeepCopy(converter->GetOutput());<br>
<br>
After DeepCopy operation, scalar ranges of vtkImage and<br>
converter->GetOutput() are different. Does'nt DeepCopy copy the value of<br>
scalar range to vtkImage's scalar range? Is there a way that all class<br>
members of converter->GetOutput() are copied to vtkImage correctly and<br>
completely?<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/vtkImageData-DeepCopy-problem-tp5721727.html" target="_blank">http://vtk.1045678.n5.nabble.com/vtkImageData-DeepCopy-problem-tp5721727.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Unpaid intern in BillsBasement at noware dot com<br>
</div>