Go to the documentation of this file.
18 #ifndef sitkFastApproximateRankImageFilter_h
19 #define sitkFastApproximateRankImageFilter_h
63 SITK_RETURN_SELF_TYPE_HEADER
SetRank (
double Rank ) { this->m_Rank =
Rank;
return *
this; }
67 double GetRank()
const {
return this->m_Rank; }\
71 SITK_RETURN_SELF_TYPE_HEADER
SetRadius ( std::vector<unsigned int> Radius ) { this->m_Radius = std::move(Radius);
return *
this; }
74 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
78 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
81 std::string
GetName()
const {
return std::string (
"FastApproximateRankImageFilter"); }
84 std::string ToString()
const;
96 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
98 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
109 std::vector<unsigned int> m_Radius{std::vector<unsigned int>(3, 1)};
The Image class for SimpleITK.
std::string GetName() const
Self & SetRadius(std::vector< unsigned int > Radius)
Self & SetRadius(unsigned int value)
BasicPixelIDTypeList PixelIDTypeList
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
std::vector< unsigned int > GetRadius() const
Self & SetRank(double Rank)
Image Rank(const Image &image1, double rank=0.5, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1))
Rank filter of a greyscale image.
std::unique_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
#define SITKBasicFilters_EXPORT
Image(Self::*)(const Image &image1) MemberFunctionType
The base interface for SimpleITK filters that take one input image.
Image FastApproximateRank(const Image &image1, double rank=0.5, std::vector< unsigned int > radius=std::vector< unsigned int >(3, 1))
A separable rank filter.