]> Creatis software - clitk.git/blobdiff - vv/vvImageReader.txx
itkv4 compatibility
[clitk.git] / vv / vvImageReader.txx
index de8da61c5c8305467b12bf032a9640e3f970dee6..9393392bf53770ea99f417ccffe84ee41804dc9d 100644 (file)
@@ -27,6 +27,7 @@
 #include <vtkTransform.h>
 
 #include "clitkCommon.h"
+#include "clitkConfiguration.h"
 #include "vvFromITK.h"
 #include "vvConstants.h"
 
@@ -46,6 +47,8 @@ void vvImageReader::UpdateWithDim(std::string InputPixelType)
     UpdateWithDimAndInputPixelType<unsigned char,VImageDimension>();
   else if (InputPixelType == "int")
     UpdateWithDimAndInputPixelType<int,VImageDimension>();
+  else if (InputPixelType == "unsigned_int")
+    UpdateWithDimAndInputPixelType<unsigned int,VImageDimension>();
   else if (InputPixelType == "double")
     UpdateWithDimAndInputPixelType<double,VImageDimension>();
   else if (InputPixelType == "float")
@@ -99,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 {