]> Creatis software - clitk.git/commitdiff
itk4 migration:
authorVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Fri, 22 Apr 2011 13:08:36 +0000 (15:08 +0200)
committerVivien Delmon <vivien.delmon@creatis.insa-lyon.fr>
Fri, 22 Apr 2011 13:08:36 +0000 (15:08 +0200)
* Add SetDirectionCollapseToSubmatrix() to extractFilter

segmentation/clitkFillMaskFilter.txx

index 19b04f33a736aa623c795306006f885e31e7d439..7d2369cdf9839eb317ed0ec26b747eca351e3855 100644 (file)
@@ -141,6 +141,9 @@ GenerateData()
         start2D[m_Directions[i]]=sliceIndex;
         desiredRegion.SetIndex( start2D );
         extractFilter->SetExtractionRegion( desiredRegion );
+#if ITK_VERSION_MAJOR == 4
+        extractFilter->SetDirectionCollapseToSubmatrix();
+#endif
         extractFilter->Update( );
         typename ImageSliceType::Pointer slice= extractFilter->GetOutput();