18 #ifndef sitkRegionalMaximaImageFilter_h
19 #define sitkRegionalMaximaImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
93 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
96 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
107 SITK_RETURN_SELF_TYPE_HEADER
SetFlatIsMaxima (
bool FlatIsMaxima ) { this->m_FlatIsMaxima = FlatIsMaxima;
return *
this; }
110 SITK_RETURN_SELF_TYPE_HEADER
FlatIsMaximaOn() {
return this->SetFlatIsMaxima(
true); }
111 SITK_RETURN_SELF_TYPE_HEADER
FlatIsMaximaOff() {
return this->SetFlatIsMaxima(
false); }
118 std::string
GetName()
const {
return std::string (
"RegionalMaximaImageFilter"); }
121 std::string ToString()
const;
129 Image Execute (
const Image& image1,
double backgroundValue,
double foregroundValue,
bool fullyConnected,
bool flatIsMaxima );
135 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
136 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Self & SetForegroundValue(double ForegroundValue)
#define SITKBasicFilters_EXPORT
bool GetFlatIsMaxima() const
bool GetFullyConnected() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
double GetBackgroundValue() const
Produce a binary image where foreground is the regional maxima of the input image.
Image RegionalMaxima(const Image &image1, double backgroundValue=0.0, double foregroundValue=1.0, bool fullyConnected=false, bool flatIsMaxima=true)
Produce a binary image where foreground is the regional maxima of the input image.
Self & FullyConnectedOn()
The Image class for SimpleITK.
double GetForegroundValue() const
std::string GetName() const
BasicPixelIDTypeList ScalarPixelIDTypeList
Self & SetFullyConnected(bool FullyConnected)
ScalarPixelIDTypeList PixelIDTypeList
Self & FullyConnectedOff()
Self & SetFlatIsMaxima(bool FlatIsMaxima)
Self & SetBackgroundValue(double BackgroundValue)
The base interface for SimpleITK filters that take one input image.
RegionalMaximaImageFilter Self