Go to the documentation of this file.
18 #ifndef sitkWhiteTopHatImageFilter_h
19 #define sitkWhiteTopHatImageFilter_h
61 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius ( std::vector<unsigned int> KernelRadius ) { this->m_KernelRadius = std::move(KernelRadius);
return *
this; }
64 SITK_RETURN_SELF_TYPE_HEADER
SetKernelRadius(
unsigned int value ) { this->m_KernelRadius = std::vector<unsigned int>(3, value);
return *
this; }
69 std::vector<unsigned int>
GetKernelRadius()
const {
return this->m_KernelRadius; }\
84 SITK_RETURN_SELF_TYPE_HEADER
SetSafeBorder (
bool SafeBorder ) { this->m_SafeBorder = SafeBorder;
return *
this; }
87 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOn() {
return this->SetSafeBorder(
true); }
88 SITK_RETURN_SELF_TYPE_HEADER
SafeBorderOff() {
return this->SetSafeBorder(
false); }
96 std::string
GetName()
const {
return std::string (
"WhiteTopHatImageFilter"); }
99 std::string ToString()
const;
111 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
120 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
125 bool m_SafeBorder{
true};
The Image class for SimpleITK.
std::vector< unsigned int > GetKernelRadius() const
White top hat extracts local maxima that are larger than the structuring element.
Self & SetKernelRadius(std::vector< unsigned int > KernelRadius)
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
BasicPixelIDTypeList PixelIDTypeList
std::string GetName() const
@ sitkBall
Ball (sphere in 3D, circle in 2D) shaped structuring element.
Image(Self::*)(const Image &image1) MemberFunctionType
Self & SetKernelType(KernelEnum KernelType)
#define SITKBasicFilters_EXPORT
Image WhiteTopHat(const Image &image1, std::vector< unsigned int > kernelRadius=std::vector< uint32_t >(3, 1), KernelEnum kernelType=itk::simple::sitkBall, bool safeBorder=true)
White top hat extracts local maxima that are larger than the structuring element.
KernelEnum GetKernelType() const
bool GetSafeBorder() const
The base interface for SimpleITK filters that take one input image.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetSafeBorder(bool SafeBorder)
Self & SetKernelRadius(unsigned int value)