From 39724f0d951ec2ecbad2ed1631811c9685489f2b Mon Sep 17 00:00:00 2001 From: dsarrut Date: Thu, 21 Apr 2011 09:09:16 +0200 Subject: [PATCH] add SetRadius with a single int (isotropic) --- segmentation/clitkMorphoMathFilter.h | 1 + segmentation/clitkMorphoMathFilter.txx | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/segmentation/clitkMorphoMathFilter.h b/segmentation/clitkMorphoMathFilter.h index b211cb8..f86c2ba 100644 --- a/segmentation/clitkMorphoMathFilter.h +++ b/segmentation/clitkMorphoMathFilter.h @@ -98,6 +98,7 @@ namespace clitk { itkGetConstMacro(Radius, SizeType); void SetRadius(SizeType & r); + void SetRadius(int r); itkGetConstMacro(BoundaryToForegroundFlag, bool); itkSetMacro(BoundaryToForegroundFlag, bool); diff --git a/segmentation/clitkMorphoMathFilter.txx b/segmentation/clitkMorphoMathFilter.txx index 1267583..03f50ea 100644 --- a/segmentation/clitkMorphoMathFilter.txx +++ b/segmentation/clitkMorphoMathFilter.txx @@ -67,6 +67,18 @@ SetRadius(SizeType & p) //-------------------------------------------------------------------- +//-------------------------------------------------------------------- +template +void clitk::MorphoMathFilter:: +SetRadius(int r) +{ + for(uint i=0; i void clitk::MorphoMathFilter:: -- 2.47.1