]> Creatis software - clitk.git/blobdiff - vv/vvImageReader.txx
itkv4 compatibility
[clitk.git] / vv / vvImageReader.txx
index fd1c5755c6670b805c6da83f650768d732f0fab2..9393392bf53770ea99f417ccffe84ee41804dc9d 100644 (file)
@@ -27,6 +27,7 @@
 #include <vtkTransform.h>
 
 #include "clitkCommon.h"
+#include "clitkConfiguration.h"
 #include "vvFromITK.h"
 #include "vvConstants.h"
 
@@ -101,7 +102,7 @@ void vvImageReader::UpdateWithDimAndInputPixelType()
                   << " " << err << std::endl;
       }
       vtkImageData *image = vtkImageData::New();
-      image->DeepCopy(connector->GetOutput());
+      image->ShallowCopy(connector->GetOutput());
       mImage->AddImage(image);
     }
   } else {