18 #ifndef sitkMorphologicalWatershedImageFilter_h
19 #define sitkMorphologicalWatershedImageFilter_h
69 SITK_RETURN_SELF_TYPE_HEADER
SetLevel (
double Level ) { this->m_Level = Level;
return *
this; }
73 double GetLevel()
const {
return this->m_Level; }
78 SITK_RETURN_SELF_TYPE_HEADER
SetMarkWatershedLine (
bool MarkWatershedLine ) { this->m_MarkWatershedLine = MarkWatershedLine;
return *
this; }
92 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
95 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
103 std::string
GetName()
const {
return std::string (
"MorphologicalWatershedImageFilter"); }
106 std::string ToString()
const;
114 Image Execute (
const Image& image1,
double level,
bool markWatershedLine,
bool fullyConnected );
120 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
121 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
MorphologicalWatershedImageFilter Self
Watershed segmentation implementation with morphogical operators.
ScalarPixelIDTypeList PixelIDTypeList
Self & SetFullyConnected(bool FullyConnected)
#define SITKBasicFilters_EXPORT
Self & SetLevel(double Level)
Self & SetMarkWatershedLine(bool MarkWatershedLine)
bool GetFullyConnected() const
Self & FullyConnectedOn()
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::string GetName() const
Self & MarkWatershedLineOn()
Self & FullyConnectedOff()
bool GetMarkWatershedLine() const
Image MorphologicalWatershed(const Image &image1, double level=0.0, bool markWatershedLine=true, bool fullyConnected=false)
Watershed segmentation implementation with morphogical operators.
The Image class for SimpleITK.
BasicPixelIDTypeList ScalarPixelIDTypeList
Self & MarkWatershedLineOff()
The base interface for SimpleITK filters that take one input image.