]> Creatis software - clitk.git/commitdiff
Bug: Forgot Macro for itkv4 specific function
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Tue, 19 Apr 2011 16:34:55 +0000 (18:34 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Tue, 19 Apr 2011 16:34:55 +0000 (18:34 +0200)
common/vvFromITK.h

index f1d548cd0d7f0b935aaf486bae78f15720601d33..c089816ad785085026eb9a594ef3ad6d476df808 100644 (file)
@@ -54,7 +54,9 @@ template<unsigned int Dim, class PixelType> 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();