Go to the documentation of this file.
18 #ifndef sitkAreaClosingImageFilter_h
19 #define sitkAreaClosingImageFilter_h
65 SITK_RETURN_SELF_TYPE_HEADER
SetLambda (
double Lambda ) { this->m_Lambda = Lambda;
return *
this; }
69 double GetLambda()
const {
return this->m_Lambda; }\
74 SITK_RETURN_SELF_TYPE_HEADER
SetUseImageSpacing (
bool UseImageSpacing ) { this->m_UseImageSpacing = UseImageSpacing;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
90 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
98 std::string
GetName()
const {
return std::string (
"AreaClosingImageFilter"); }
101 std::string ToString()
const;
113 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
122 double m_Lambda{0.0};
125 bool m_UseImageSpacing{
true};
128 bool m_FullyConnected{
false};
The Image class for SimpleITK.
Morphological closing by attributes.
Image AreaClosing(const Image &image1, double lambda=0.0, bool useImageSpacing=true, bool fullyConnected=false)
Morphological closing by attributes.
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
std::string GetName() const
bool GetUseImageSpacing() const
Self & FullyConnectedOn()
Image(Self::*)(const Image &image1) MemberFunctionType
BasicPixelIDTypeList PixelIDTypeList
bool GetFullyConnected() const
#define SITKBasicFilters_EXPORT
Self & UseImageSpacingOn()
Self & SetLambda(double Lambda)
The size of the area opening.
Self & SetUseImageSpacing(bool UseImageSpacing)
Self & FullyConnectedOff()
The base interface for SimpleITK filters that take one input image.
Self & SetFullyConnected(bool FullyConnected)
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & UseImageSpacingOff()