]> Creatis software - clitk.git/blobdiff - vv/vvImageReader.txx
added presets and GUI's for AutoReg
[clitk.git] / vv / vvImageReader.txx
index de8da61c5c8305467b12bf032a9640e3f970dee6..af11299b9e4497f0a715636ae864b866745992ce 100644 (file)
@@ -46,6 +46,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 +101,7 @@ void vvImageReader::UpdateWithDimAndInputPixelType()
                   << " " << err << std::endl;
       }
       vtkImageData *image = vtkImageData::New();
-      image->DeepCopy(connector->GetOutput());
+      image->ShallowCopy(connector->GetOutput());
       mImage->AddImage(image);
     }
   } else {