18 #ifndef sitkClosingByReconstructionImageFilter_h
19 #define sitkClosingByReconstructionImageFilter_h
72 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
75 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
80 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
95 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
98 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
109 SITK_RETURN_SELF_TYPE_HEADER
SetPreserveIntensities (
bool PreserveIntensities ) { this->m_PreserveIntensities = PreserveIntensities;
return *
this; }
121 std::string
GetName()
const {
return std::string (
"ClosingByReconstructionImageFilter"); }
124 std::string ToString()
const;
136 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
145 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
150 bool m_FullyConnected{
false};
153 bool m_PreserveIntensities{
false};