X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=segmentation%2FclitkRegionGrowingGenericFilter.txx;h=681b98ec57eee4e8e6f12e260d06ecd27e00266a;hb=aa424793243b9b210a0d009f5cb8031db985549a;hp=e8f365317661d7a7e5d83ab28d98440561607ca9;hpb=b3eefccefcc9a81814c52e249fe805df7dc2cbf7;p=clitk.git diff --git a/segmentation/clitkRegionGrowingGenericFilter.txx b/segmentation/clitkRegionGrowingGenericFilter.txx index e8f3653..681b98e 100644 --- a/segmentation/clitkRegionGrowingGenericFilter.txx +++ b/segmentation/clitkRegionGrowingGenericFilter.txx @@ -110,24 +110,8 @@ void clitk::RegionGrowingGenericFilter::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)