18 #ifndef sitkOpeningByReconstructionImageFilter_h
19 #define sitkOpeningByReconstructionImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
74 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
79 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
94 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
97 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
108 SITK_RETURN_SELF_TYPE_HEADER
SetPreserveIntensities (
bool PreserveIntensities ) { this->m_PreserveIntensities = PreserveIntensities;
return *
this; }
120 std::string
GetName()
const {
return std::string (
"OpeningByReconstructionImageFilter"); }
123 std::string ToString()
const;
135 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
144 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
149 bool m_FullyConnected{
false};
152 bool m_PreserveIntensities{
false};