18 #ifndef sitkGrayscaleFillholeImageFilter_h
19 #define sitkGrayscaleFillholeImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
75 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
83 std::string
GetName()
const {
return std::string (
"GrayscaleFillholeImageFilter"); }
86 std::string ToString()
const;
94 Image Execute (
const Image& image1,
bool fullyConnected );
100 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
101 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
Self & FullyConnectedOff()
Remove local minima not connected to the boundary of the image.
Image GrayscaleFillhole(const Image &image1, bool fullyConnected=false)
Remove local minima not connected to the boundary of the image.
#define SITKBasicFilters_EXPORT
GrayscaleFillholeImageFilter Self
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
bool GetFullyConnected() const
Self & SetFullyConnected(bool FullyConnected)
The Image class for SimpleITK.
BasicPixelIDTypeList PixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & FullyConnectedOn()
The base interface for SimpleITK filters that take one input image.
std::string GetName() const