]> Creatis software - clitk.git/commitdiff
Rolled back to version 1.7 because it was crashing with transforms. I couldn't figure...
authorsrit <srit>
Mon, 30 Aug 2010 13:41:53 +0000 (13:41 +0000)
committersrit <srit>
Mon, 30 Aug 2010 13:41:53 +0000 (13:41 +0000)
common/vvFromITK.h

index fb1e8827c2c6b25d5719c96cc2ca5bde385ebc16..818705176e5f2d4701af011aed6cef7f5f216669 100644 (file)
@@ -80,7 +80,7 @@ template<unsigned int Dim, class PixelType> vvImage::Pointer vvImageFromITK(type
                 return vv_image;
             }
             vtkImageData *image = vtkImageData::New();
-            image->ShallowCopy(connector->GetOutput());
+            image->DeepCopy(connector->GetOutput());
             vv_image->AddImage(image);
         }
         vv_image->SetTimeSpacing(input->GetSpacing()[Dim-1]);
@@ -102,7 +102,7 @@ template<unsigned int Dim, class PixelType> vvImage::Pointer vvImageFromITK(type
             return vv_image;
         }
         vtkImageData *image = vtkImageData::New();
-        image->ShallowCopy(connector->GetOutput());
+        image->DeepCopy(connector->GetOutput());
         vv_image->AddImage(image);
     }
     return vv_image;