18 #ifndef sitkBinaryOpeningByReconstructionImageFilter_h
19 #define sitkBinaryOpeningByReconstructionImageFilter_h
73 SITK_RETURN_SELF_TYPE_HEADER
SetForegroundValue (
double ForegroundValue ) { this->m_ForegroundValue = ForegroundValue;
return *
this; }
83 SITK_RETURN_SELF_TYPE_HEADER
SetBackgroundValue (
double BackgroundValue ) { this->m_BackgroundValue = BackgroundValue;
return *
this; }
93 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
96 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
104 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
113 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
114 std::vector<uint32_t> GetKernelRadius()
const;
118 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
120 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
125 std::string
GetName()
const {
return std::string (
"BinaryOpeningByReconstructionImageFilter"); }
128 std::string ToString()
const;
136 Image Execute (
const Image& image1,
double foregroundValue,
double backgroundValue,
bool fullyConnected );
143 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
144 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
173 ,
double foregroundValue = 1.0,
double backgroundValue = 0.0,
bool fullyConnected =
false );
184 ,
double foregroundValue = 1.0,
double backgroundValue = 0.0,
bool fullyConnected =
false );
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t > >::Type IntegerPixelIDTypeList
bool GetFullyConnected() const
#define SITKBasicFilters_EXPORT
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
double GetForegroundValue() const
IntegerPixelIDTypeList PixelIDTypeList
Self & SetBackgroundValue(double BackgroundValue)
std::vector< uint32_t > m_KernelRadius
Image BinaryOpeningByReconstruction(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, double foregroundValue=1.0, double backgroundValue=0.0, bool fullyConnected=false)
Self & FullyConnectedOff()
Self & SetFullyConnected(bool FullyConnected)
Self & SetForegroundValue(double ForegroundValue)
BinaryOpeningByReconstructionImageFilter Self
The Image class for SimpleITK.
std::string GetName() const
Self & FullyConnectedOn()
double GetBackgroundValue() const
binary morphological closing of an image.
The base interface for SimpleITK filters that take one input image.