18 #ifndef sitkRegionalMaximaImageFilter_h
19 #define sitkRegionalMaximaImageFilter_h
75 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
85 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
95 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
98 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
109 SITK_RETURN_SELF_TYPE_HEADER
SetFlatIsMaxima (
bool FlatIsMaxima ) { this->m_FlatIsMaxima = FlatIsMaxima;
return *
this; }
112 SITK_RETURN_SELF_TYPE_HEADER
FlatIsMaximaOn() {
return this->SetFlatIsMaxima(
true); }
113 SITK_RETURN_SELF_TYPE_HEADER
FlatIsMaximaOff() {
return this->SetFlatIsMaxima(
false); }
121 std::string
GetName()
const {
return std::string (
"RegionalMaximaImageFilter"); }
124 std::string ToString()
const;
136 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
145 double m_BackgroundValue{0.0};
148 double m_ForegroundValue{1.0};
151 bool m_FullyConnected{
false};
153 bool m_FlatIsMaxima{
true};