X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=common%2FvvFromITK.h;h=c089816ad785085026eb9a594ef3ad6d476df808;hb=fccfc9b0a6df74011a09eebe42ee50fc57e764de;hp=f1d548cd0d7f0b935aaf486bae78f15720601d33;hpb=765020625fbc092d283e221e36c83e60a1844cb7;p=clitk.git diff --git a/common/vvFromITK.h b/common/vvFromITK.h index f1d548c..c089816 100644 --- a/common/vvFromITK.h +++ b/common/vvFromITK.h @@ -54,7 +54,9 @@ template vvImage::Pointer vvImageFromITK(type extractedRegion.SetIndex(start); typename FilterType::Pointer filter = FilterType::New(); +#if ITK_VERSION_MAJOR == 4 filter->SetDirectionCollapseToSubmatrix(); +#endif filter->SetExtractionRegion(extractedRegion); filter->SetInput(input); filter->ReleaseDataFlagOn();