]> Creatis software - clitk.git/blobdiff - segmentation/clitkRegionGrowingGenericFilter.txx
Remove ITK3 and ITK4.2 tests and dependencies
[clitk.git] / segmentation / clitkRegionGrowingGenericFilter.txx
index e8f365317661d7a7e5d83ab28d98440561607ca9..681b98ec57eee4e8e6f12e260d06ecd27e00266a 100644 (file)
@@ -110,24 +110,8 @@ void clitk::RegionGrowingGenericFilter<ArgsInfoType>::UpdateWithInputImageType()
       IteratorType it(ball.GetRadius(),
                       input,
                       input->GetLargestPossibleRegion());
-#if ITK_VERSION_MAJOR < 4
-      typename BallType::ConstIterator nit;
-      unsigned idx = 0;
-      for (nit = ball.Begin(); nit != ball.End(); ++nit, ++idx)
-        {
-          if (*nit)
-            {
-              it.ActivateOffset(it.GetOffset(idx));
-            }
-          else
-            {
-              it.DeactivateOffset(it.GetOffset(idx));
-            }
-        }
-#else
       it.CreateActiveListFromNeighborhood(ball);
       it.NeedToUseBoundaryConditionOff();
-#endif
 
       it.SetLocation(seeds[0]);
       for (typename IteratorType::ConstIterator i = it.Begin(); !i.IsAtEnd(); ++i)