X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvImageReader.txx;h=551e42626ba7313a84bb687f2fe8322c78d93962;hb=1dfeba065d7121eb27aa44a792095af817652683;hp=551f1139691d31eb944a721741a740a18644a3dd;hpb=7ecd8498ac882223280979e6090d1af4763e9eac;p=clitk.git diff --git a/common/vvImageReader.txx b/common/vvImageReader.txx index 551f113..551e426 100644 --- a/common/vvImageReader.txx +++ b/common/vvImageReader.txx @@ -60,7 +60,7 @@ void vvImageReader::UpdateWithDim(std::string InputPixelType) else std::cerr << "Error, input pixel type : " << InputPixelType << " unknown !" << std::endl; - if (CLITK_EXPERIMENTAL && mLastError.size()==0) { + if (mLastError.size()==0) { //ReadNkiImageTransform(); ReadMatImageTransform(); } @@ -121,9 +121,7 @@ void vvImageReader::UpdateWithDimAndInputPixelType() filter->SetExtractionRegion(extractedRegion); filter->SetInput(reader->GetOutput()); filter->ReleaseDataFlagOn(); -#if ITK_VERSION_MAJOR == 4 filter->SetDirectionCollapseToSubmatrix(); -#endif try { mImage->AddItkImage(filter->GetOutput()); mImage->ComputeScalarRangeBase(filter->GetOutput());