18 #ifndef sitkRegionalMinimaImageFilter_h
19 #define sitkRegionalMinimaImageFilter_h
77 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
111 SITK_RETURN_SELF_TYPE_HEADER
SetFlatIsMinima (
bool FlatIsMinima ) { this->m_FlatIsMinima = FlatIsMinima;
return *
this; }
114 SITK_RETURN_SELF_TYPE_HEADER
FlatIsMinimaOn() {
return this->SetFlatIsMinima(
true); }
115 SITK_RETURN_SELF_TYPE_HEADER
FlatIsMinimaOff() {
return this->SetFlatIsMinima(
false); }
122 std::string
GetName()
const {
return std::string (
"RegionalMinimaImageFilter"); }
125 std::string ToString()
const;
133 Image Execute (
const Image& image1,
double backgroundValue,
double foregroundValue,
bool fullyConnected,
bool flatIsMinima );
140 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
141 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 main 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