X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvImageReader.txx;h=9393392bf53770ea99f417ccffe84ee41804dc9d;hb=0d42b6962669e20d31f6f7b566eefb2aecefa050;hp=de8da61c5c8305467b12bf032a9640e3f970dee6;hpb=b29f225c9396ca737ce59bdf0d9ef50a6c1e9bc5;p=clitk.git diff --git a/vv/vvImageReader.txx b/vv/vvImageReader.txx index de8da61..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") @@ -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 {