18 #ifndef sitkClosingByReconstructionImageFilter_h
19 #define sitkClosingByReconstructionImageFilter_h
76 SITK_RETURN_SELF_TYPE_HEADER
SetFullyConnected (
bool FullyConnected ) { this->m_FullyConnected = FullyConnected;
return *
this; }
79 SITK_RETURN_SELF_TYPE_HEADER
FullyConnectedOn() {
return this->SetFullyConnected(
true); }
90 SITK_RETURN_SELF_TYPE_HEADER
SetPreserveIntensities (
bool PreserveIntensities ) { this->m_PreserveIntensities = PreserveIntensities;
return *
this; }
101 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
uint32_t r);
110 SITK_RETURN_SELF_TYPE_HEADER SetKernelRadius(
const std::vector<uint32_t> &r );
111 std::vector<uint32_t> GetKernelRadius()
const;
115 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(
KernelEnum t);
117 SITK_RETURN_SELF_TYPE_HEADER SetKernelType(KernelType t);
122 std::string
GetName()
const {
return std::string (
"ClosingByReconstructionImageFilter"); }
125 std::string ToString()
const;
133 Image Execute (
const Image& image1,
bool fullyConnected,
bool preserveIntensities );
140 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
141 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
170 ,
bool fullyConnected =
false,
bool preserveIntensities =
false );
181 ,
bool fullyConnected =
false,
bool preserveIntensities =
false );
std::string GetName() const
Self & PreserveIntensitiesOff()
#define SITKBasicFilters_EXPORT
std::vector< uint32_t > m_KernelRadius
typelist::MakeTypeList< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > >::Type BasicPixelIDTypeList
Self & PreserveIntensitiesOn()
Self & FullyConnectedOn()
Self & SetFullyConnected(bool FullyConnected)
bool GetFullyConnected() const
Closing by reconstruction of an image.
bool GetPreserveIntensities() const
Self & SetPreserveIntensities(bool PreserveIntensities)
Image ClosingByReconstruction(const Image &, uint32_t radius=1, KernelEnum kernel=sitkBall, bool fullyConnected=false, bool preserveIntensities=false)
The Image class for SimpleITK.
Self & FullyConnectedOff()
The base interface for SimpleITK filters that take one input image.
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
BasicPixelIDTypeList PixelIDTypeList
bool m_PreserveIntensities
ClosingByReconstructionImageFilter Self