18 #ifndef sitkBinaryMinMaxCurvatureFlowImageFilter_h
19 #define sitkBinaryMinMaxCurvatureFlowImageFilter_h
80 SITK_RETURN_SELF_TYPE_HEADER
SetTimeStep (
double TimeStep ) { this->m_TimeStep = TimeStep;
return *
this; }
96 SITK_RETURN_SELF_TYPE_HEADER
SetStencilRadius (
int StencilRadius ) { this->m_StencilRadius = StencilRadius;
return *
this; }
112 std::string
GetName()
const {
return std::string (
"BinaryMinMaxCurvatureFlowImageFilter"); }
115 std::string ToString()
const;
123 Image Execute (
const Image& image1,
double timeStep,
uint32_t numberOfIterations,
int stencilRadius,
double threshold );
129 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
130 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
std::string GetName() const
Image BinaryMinMaxCurvatureFlow(const Image &image1, double timeStep=0.05, uint32_t numberOfIterations=5u, int stencilRadius=2, double threshold=0)
Denoise a binary image using min/max curvature flow.
#define SITKBasicFilters_EXPORT
Denoise a binary image using min/max curvature flow.
uint32_t m_NumberOfIterations
typelist::MakeTypeList< BasicPixelID< float >, BasicPixelID< double > >::Type RealPixelIDTypeList
Self & SetStencilRadius(int StencilRadius)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
double GetTimeStep() const
RealPixelIDTypeList PixelIDTypeList
Image Threshold(const Image &image1, double lower=0.0, double upper=1.0, double outsideValue=0.0)
Set image values to a user-specified value if they are below, above, or between simple threshold valu...
double GetThreshold() const
Self & SetTimeStep(double TimeStep)
Self & SetThreshold(double Threshold)
The Image class for SimpleITK.
uint32_t GetNumberOfIterations() const
int GetStencilRadius() const
Self & SetNumberOfIterations(uint32_t NumberOfIterations)
The base interface for SimpleITK filters that take one input image.
BinaryMinMaxCurvatureFlowImageFilter Self