Go to the documentation of this file.
18 #ifndef sitkRankImageFilter_h
19 #define sitkRankImageFilter_h
71 SITK_RETURN_SELF_TYPE_HEADER
SetRank (
double Rank ) { this->m_Rank =
Rank;
return *
this; }
75 double GetRank()
const {
return this->m_Rank; }\
79 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
83 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }\
96 std::string
GetName()
const {
return std::string (
"RankImageFilter"); }
99 std::string ToString()
const;
111 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
113 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
124 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
The Image class for SimpleITK.
@ sitkBox
Box shaped structuring element.
BasicPixelIDTypeList PixelIDTypeList
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
Image(Self::*)(const Image &image1) MemberFunctionType
Rank filter of a greyscale image.
std::string GetName() const
Image Rank(const Image &image1, double rank=0.5, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1), KernelEnum kernelType=itk::simple::sitkBox)
Rank filter of a greyscale image.
Self & SetRank(double Rank)
KernelEnum GetKernelType() const
Self & SetKernelType(KernelEnum KernelType)
#define SITKBasicFilters_EXPORT
The base interface for SimpleITK filters that take one input image.
std::vector< unsigned int > GetRadius() const
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
Self & SetRadius(std::vector< unsigned int > Radius)