Go to the documentation of this file.
18 #ifndef sitkMorphologicalGradientImageFilter_h
19 #define sitkMorphologicalGradientImageFilter_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; }\
82 std::string
GetName()
const {
return std::string (
"MorphologicalGradientImageFilter"); }
85 std::string ToString()
const;
97 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
106 std::vector<unsigned int> m_KernelRadius{std::vector<uint32_t>(3, 1)};
The Image class for SimpleITK.
KernelEnum GetKernelType() const
Image MorphologicalGradient(const Image &image1, std::vector< unsigned int > kernelRadius=std::vector< uint32_t >(3, 1), KernelEnum kernelType=itk::simple::sitkBall)
Compute the gradient of a grayscale image.
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::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetKernelRadius(std::vector< unsigned int > KernelRadius)
Self & SetKernelType(KernelEnum KernelType)
@ sitkBall
Ball (sphere in 3D, circle in 2D) shaped structuring element.
Image(Self::*)(const Image &image1) MemberFunctionType
Self & SetKernelRadius(unsigned int value)
#define SITKBasicFilters_EXPORT
std::vector< unsigned int > GetKernelRadius() const
BasicPixelIDTypeList PixelIDTypeList
The base interface for SimpleITK filters that take one input image.
Compute the gradient of a grayscale image.
std::string GetName() const