From: Vivien Delmon Date: Tue, 19 Apr 2011 16:34:55 +0000 (+0200) Subject: Bug: Forgot Macro for itkv4 specific function X-Git-Tag: v1.2.0~32 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=70138676c09cc565c9909cb617e900cc11a53269;p=clitk.git Bug: Forgot Macro for itkv4 specific function --- 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();