18 #ifndef sitkBinaryClosingByReconstructionImageFilter_h
19 #define sitkBinaryClosingByReconstructionImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
86 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
94 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
103 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
104 std::vector<uint32_t> GetKernelRadius()
const;
108 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
110 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
115 std::string
GetName()
const {
return std::string (
"BinaryClosingByReconstructionImageFilter"); }
118 std::string ToString()
const;
126 Image Execute (
const Image& image1,
double foregroundValue,
bool fullyConnected );
133 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
134 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
162 ,
double foregroundValue = 1.0,
bool fullyConnected =
false );
173 ,
double foregroundValue = 1.0,
bool fullyConnected =
false );
binary closing by reconstruction of an image.
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
IntegerPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
Self & SetForegroundValue(double ForegroundValue)
Self & FullyConnectedOff()
Self & FullyConnectedOn()
std::vector< uint32_t > m_KernelRadius
double GetForegroundValue() const
Self & SetFullyConnected(bool FullyConnected)
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
BinaryClosingByReconstructionImageFilter Self
The Image class for SimpleITK.
Image BinaryClosingByReconstruction(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, double foregroundValue=1.0, bool fullyConnected=false)
std::string GetName() const
bool GetFullyConnected() const
The base interface for SimpleITK filters that take one input image.