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 );
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 );