]> Creatis software - clitk.git/blobdiff - vv/vvImageReader.txx
Removed writing of temp file
[clitk.git] / vv / vvImageReader.txx
index dde83af1172fe686fc82bea36d122ddc049e98d7..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")
@@ -53,9 +55,10 @@ void vvImageReader::UpdateWithDim(std::string InputPixelType)
   else
     std::cerr << "Error, input pixel type : " << InputPixelType << " unknown !" << std::endl;
 
-  if (CLITK_EXPERIMENTAL)
-    if (mLastError.size()==0)
-      ReadNkiImageTransform();
+  if (CLITK_EXPERIMENTAL && mLastError.size()==0) {
+    ReadNkiImageTransform();
+    ReadMatImageTransform();
+  }
 }
 //----------------------------------------------------------------------------
 
@@ -98,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 {