18 #ifndef sitkFastApproximateRankImageFilter_h
19 #define sitkFastApproximateRankImageFilter_h
64 SITK_RETURN_SELF_TYPE_HEADER
SetRank (
double Rank ) { this->m_Rank =
Rank;
return *
this; }
68 double GetRank()
const {
return this->m_Rank; }
72 SITK_RETURN_SELF_TYPE_HEADER
SetRadius (
const std::vector<unsigned int> & Radius ) { this->m_Radius = Radius;
return *
this; }
75 SITK_RETURN_SELF_TYPE_HEADER
SetRadius(
unsigned int value ) { this->m_Radius = std::vector<unsigned int>(3, value);
return *
this; }
80 std::vector<unsigned int>
GetRadius()
const {
return this->m_Radius; }
82 std::string
GetName()
const {
return std::string (
"FastApproximateRankImageFilter"); }
85 std::string ToString()
const;
93 Image Execute (
const Image& image1,
double rank,
const std::vector<unsigned int> & radius );
100 typedef Image (Self::*MemberFunctionType)(
const Image& image1 );
101 template <
class TImageType>
Image ExecuteInternal (
const Image& image1 );
104 template <
class TImageType>
Image ExecuteInternalVectorImage (
const Image& image );
Self & SetRank(double Rank)
Self & SetRadius(unsigned int value)
Self & SetRadius(const std::vector< unsigned int > &Radius)
#define SITKBasicFilters_EXPORT
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
Image FastApproximateRank(const Image &image1, double rank=0.5, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1))
A separable rank filter.
Image Rank(const Image &image1, double rank=0.5, const std::vector< unsigned int > &radius=std::vector< unsigned int >(3, 1))
Rank filter of a greyscale image.
std::string GetName() const
std::vector< unsigned int > GetRadius() const
std::vector< unsigned int > m_Radius
BasicPixelIDTypeList PixelIDTypeList
nsstd::auto_ptr< detail::MemberFunctionFactory< MemberFunctionType > > m_MemberFactory
The main Image class for SimpleITK.
FastApproximateRankImageFilter Self
The base interface for SimpleITK filters that take one input image.