X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=vv%2FvvImageReader.txx;h=9393392bf53770ea99f417ccffe84ee41804dc9d;hb=0d42b6962669e20d31f6f7b566eefb2aecefa050;hp=dde83af1172fe686fc82bea36d122ddc049e98d7;hpb=1e034c70105f0926939acaaa27ddb46e904ae8bf;p=clitk.git diff --git a/vv/vvImageReader.txx b/vv/vvImageReader.txx index dde83af..9393392 100644 --- a/vv/vvImageReader.txx +++ b/vv/vvImageReader.txx @@ -27,6 +27,7 @@ #include #include "clitkCommon.h" +#include "clitkConfiguration.h" #include "vvFromITK.h" #include "vvConstants.h" @@ -46,6 +47,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 +56,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 +102,7 @@ void vvImageReader::UpdateWithDimAndInputPixelType() << " " << err << std::endl; } vtkImageData *image = vtkImageData::New(); - image->DeepCopy(connector->GetOutput()); + image->ShallowCopy(connector->GetOutput()); mImage->AddImage(image); } } else {