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