Go to the documentation of this file.
18 #ifndef sitkBlackTopHatImageFilter_h
19 #define sitkBlackTopHatImageFilter_h
63 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
66 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
71 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
86 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
89 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
90 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
98 std::string
GetName()
const {
return std::string (
"BlackTopHatImageFilter"); }
101 std::string ToString()
const;
113 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
122 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
127 bool m_SafeBorder{
true};
The Image class for SimpleITK.
Self & SetKernelType(KernelEnum KernelType)
typelist2::typelist< BasicPixelID< int8_t >, BasicPixelID< uint8_t >, BasicPixelID< int16_t >, BasicPixelID< uint16_t >, BasicPixelID< int32_t >, BasicPixelID< uint32_t >, BasicPixelID< float >, BasicPixelID< double > > BasicPixelIDTypeList
std::string GetName() const
KernelEnum GetKernelType() const
@ sitkBall
Ball (sphere in 3D, circle in 2D) shaped structuring element.
Self & SetKernelRadius(std::vector< unsigned int > KernelRadius)
Black top hat extracts local minima that are smaller than the structuring element.
std::vector< unsigned int > GetKernelRadius() const
bool GetSafeBorder() const
BasicPixelIDTypeList PixelIDTypeList
#define SITKBasicFilters_EXPORT
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Image BlackTopHat(const Image &image1, std::vector< unsigned int > kernelRadius=std::vector< uint32_t >(3, 1), KernelEnum kernelType=itk::simple::sitkBall, bool safeBorder=true)
Black top hat extracts local minima that are smaller than the structuring element.
The base interface for SimpleITK filters that take one input image.
Image(Self::*)(const Image &image1) MemberFunctionType
Self & SetSafeBorder(bool SafeBorder)
Self & SetKernelRadius(unsigned int value)