18 #ifndef sitkVotingBinaryIterativeHoleFillingImageFilter_h
19 #define sitkVotingBinaryIterativeHoleFillingImageFilter_h
75 SITK_RETURN_SELF_TYPE_HEADER
SetRadius (
const std::vector<unsigned int> & Radius ) { this->m_Radius = Radius;
return *
this; }
78 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
84 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
89 SITK_RETURN_SELF_TYPE_HEADER
SetMaximumNumberOfIterations (
unsigned int MaximumNumberOfIterations ) { this->m_MaximumNumberOfIterations = MaximumNumberOfIterations;
return *
this; }
99 SITK_RETURN_SELF_TYPE_HEADER
SetMajorityThreshold (
unsigned int MajorityThreshold ) { this->m_MajorityThreshold = MajorityThreshold;
return *
this; }
109 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
119 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
126 std::string
GetName()
const {
return std::string (
"VotingBinaryIterativeHoleFillingImageFilter"); }
129 std::string ToString()
const;
137 Image Execute (
const Image& image1,
const std::vector<unsigned int> & radius,
unsigned int maximumNumberOfIterations,
unsigned int majorityThreshold,
double foregroundValue,
double backgroundValue );
144 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
145 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
unsigned int GetMaximumNumberOfIterations() const
double GetForegroundValue() const
#define SITKBasicFilters_EXPORT
double GetBackgroundValue() const
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
std::string GetName() const
Image VotingBinaryIterativeHoleFilling(const Image &image1, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1), unsigned int maximumNumberOfIterations=10u, unsigned int majorityThreshold=1u, double foregroundValue=1.0, double backgroundValue=0.0)
Fills in holes and cavities by iteratively applying a voting operation.
std::vector< unsigned int > m_Radius
std::vector< unsigned int > GetRadius() const
unsigned int GetMajorityThreshold() const
Self & SetBackgroundValue(double BackgroundValue)
Self & SetForegroundValue(double ForegroundValue)
Self & SetMaximumNumberOfIterations(unsigned int MaximumNumberOfIterations)
Self & SetRadius(const std::vector< unsigned int > &Radius)
IntegerPixelIDTypeList PixelIDTypeList
The main Image class for SimpleITK.
Self & SetMajorityThreshold(unsigned int MajorityThreshold)
Self & SetRadius(unsigned int value)
Fills in holes and cavities by iteratively applying a voting operation.
unsigned int m_MaximumNumberOfIterations
unsigned int m_MajorityThreshold
The base interface for SimpleITK filters that take one input image.
VotingBinaryIterativeHoleFillingImageFilter Self