18 #ifndef sitkRegionalMinimaImageFilter_h
19 #define sitkRegionalMinimaImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
81 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
91 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
94 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
105 SITK_RETURN_SELF_TYPE_HEADER
SetFlatIsMinima (
bool FlatIsMinima ) { this->m_FlatIsMinima = FlatIsMinima;
return *
this; }
108 SITK_RETURN_SELF_TYPE_HEADER
FlatIsMinimaOn() {
return this->SetFlatIsMinima(
true); }
109 SITK_RETURN_SELF_TYPE_HEADER
FlatIsMinimaOff() {
return this->SetFlatIsMinima(
false); }
116 std::string
GetName()
const {
return std::string (
"RegionalMinimaImageFilter"); }
119 std::string ToString()
const;
127 Image Execute (
const Image& image1,
double backgroundValue,
double foregroundValue,
bool fullyConnected,
bool flatIsMinima );
133 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
134 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Self & SetForegroundValue(double ForegroundValue)
Self & FullyConnectedOff()
bool GetFullyConnected() const
Self & SetFlatIsMinima(bool FlatIsMinima)
std::string GetName() const
ScalarPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
Self & FullyConnectedOn()
Self & SetBackgroundValue(double BackgroundValue)
Self & SetFullyConnected(bool FullyConnected)
Produce a binary image where foreground is the regional minima of the input image.
double GetBackgroundValue() const
double GetForegroundValue() const
The Image class for SimpleITK.
Image RegionalMinima(const Image &image1, double backgroundValue=0.0, double foregroundValue=1.0, bool fullyConnected=false, bool flatIsMinima=true)
Produce a binary image where foreground is the regional minima of the input image.
BasicPixelIDTypeList ScalarPixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The base interface for SimpleITK filters that take one input image.
RegionalMinimaImageFilter Self
bool GetFlatIsMinima() const