X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvImageReader.txx;h=af11299b9e4497f0a715636ae864b866745992ce;hb=5cc64cb817d78d671eb20d219cc19f9ad5b1e5c1;hp=dde83af1172fe686fc82bea36d122ddc049e98d7;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/vv/vvImageReader.txx b/vv/vvImageReader.txx index dde83af..af11299 100644 --- a/vv/vvImageReader.txx +++ b/vv/vvImageReader.txx @@ -46,6 +46,8 @@ void vvImageReader::UpdateWithDim(std::string InputPixelType) UpdateWithDimAndInputPixelType(); else if (InputPixelType == "int") UpdateWithDimAndInputPixelType(); + else if (InputPixelType == "unsigned_int") + UpdateWithDimAndInputPixelType(); else if (InputPixelType == "double") UpdateWithDimAndInputPixelType(); 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 {