From 70138676c09cc565c9909cb617e900cc11a53269 Mon Sep 17 00:00:00 2001 From: Vivien Delmon Date: Tue, 19 Apr 2011 18:34:55 +0200 Subject: [PATCH] Bug: Forgot Macro for itkv4 specific function --- common/vvFromITK.h | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.45.1