ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itk::Function::RankHistogram< TInputPixel > Class Template Reference

#include <itkRankHistogram.h>

Detailed Description

template<typename TInputPixel>
class itk::Function::RankHistogram< TInputPixel >

Definition at line 51 of file itkRankHistogram.h.

+ Collaboration diagram for itk::Function::RankHistogram< TInputPixel >:

Public Types

using Compare = std::less<TInputPixel>
 

Public Member Functions

void AddBoundary ()
 
void AddPixel (const TInputPixel &p)
 
TInputPixel GetValue (const TInputPixel &)
 
TInputPixel GetValueBruteForce ()
 
bool IsValid ()
 
RankHistogramoperator= (const RankHistogram &hist)
 
 RankHistogram ()
 
void RemoveBoundary ()
 
void RemovePixel (const TInputPixel &p)
 
void SetRank (float rank)
 
 ~RankHistogram ()=default
 

Static Public Member Functions

static bool UseVectorBasedAlgorithm ()
 

Protected Attributes

float m_Rank
 

Private Types

using MapType = typename std::map<TInputPixel, SizeValueType, Compare>
 

Private Attributes

SizeValueType m_Below
 
Compare m_Compare
 
SizeValueType m_Entries
 
bool m_Initialized
 
TInputPixel m_InitVal
 
MapType m_Map
 
MapType::iterator m_RankIt
 
TInputPixel m_RankValue
 

Member Typedef Documentation

◆ Compare

template<typename TInputPixel>
using itk::Function::RankHistogram< TInputPixel >::Compare = std::less<TInputPixel>

Definition at line 54 of file itkRankHistogram.h.

◆ MapType

template<typename TInputPixel>
using itk::Function::RankHistogram< TInputPixel >::MapType = typename std::map<TInputPixel, SizeValueType, Compare>
private

Definition at line 258 of file itkRankHistogram.h.

Constructor & Destructor Documentation

◆ RankHistogram()

template<typename TInputPixel>
itk::Function::RankHistogram< TInputPixel >::RankHistogram ( )
inline

◆ ~RankHistogram()

template<typename TInputPixel>
itk::Function::RankHistogram< TInputPixel >::~RankHistogram ( )
default

References RankHistogram().

Member Function Documentation

◆ AddBoundary()

template<typename TInputPixel>
void itk::Function::RankHistogram< TInputPixel >::AddBoundary ( )
inline

Definition at line 241 of file itkRankHistogram.h.

◆ AddPixel()

template<typename TInputPixel>
void itk::Function::RankHistogram< TInputPixel >::AddPixel ( const TInputPixel & p)
inline

Definition at line 97 of file itkRankHistogram.h.

References m_Below, m_Compare, m_Entries, m_Initialized, m_Map, m_RankIt, and m_RankValue.

◆ GetValue()

template<typename TInputPixel>
TInputPixel itk::Function::RankHistogram< TInputPixel >::GetValue ( const TInputPixel & )
inline

Definition at line 156 of file itkRankHistogram.h.

References GetValueBruteForce(), m_Below, m_Entries, m_Map, m_Rank, m_RankIt, and m_RankValue.

◆ GetValueBruteForce()

template<typename TInputPixel>
TInputPixel itk::Function::RankHistogram< TInputPixel >::GetValueBruteForce ( )
inline

Definition at line 140 of file itkRankHistogram.h.

References m_Entries, m_Map, m_Rank, and itk::NumericTraits< T >::max().

Referenced by GetValue().

◆ IsValid()

template<typename TInputPixel>
bool itk::Function::RankHistogram< TInputPixel >::IsValid ( )
inline

Definition at line 134 of file itkRankHistogram.h.

References m_Initialized.

◆ operator=()

template<typename TInputPixel>
RankHistogram & itk::Function::RankHistogram< TInputPixel >::operator= ( const RankHistogram< TInputPixel > & hist)
inline

◆ RemoveBoundary()

template<typename TInputPixel>
void itk::Function::RankHistogram< TInputPixel >::RemoveBoundary ( )
inline

Definition at line 245 of file itkRankHistogram.h.

◆ RemovePixel()

template<typename TInputPixel>
void itk::Function::RankHistogram< TInputPixel >::RemovePixel ( const TInputPixel & p)
inline

Definition at line 115 of file itkRankHistogram.h.

References m_Below, m_Compare, m_Entries, m_Initialized, m_Map, and m_RankValue.

◆ SetRank()

template<typename TInputPixel>
void itk::Function::RankHistogram< TInputPixel >::SetRank ( float rank)
inline

Definition at line 235 of file itkRankHistogram.h.

References m_Rank.

◆ UseVectorBasedAlgorithm()

template<typename TInputPixel>
static bool itk::Function::RankHistogram< TInputPixel >::UseVectorBasedAlgorithm ( )
inlinestatic

Definition at line 249 of file itkRankHistogram.h.

Member Data Documentation

◆ m_Below

template<typename TInputPixel>
SizeValueType itk::Function::RankHistogram< TInputPixel >::m_Below
private

Definition at line 261 of file itkRankHistogram.h.

Referenced by AddPixel(), GetValue(), operator=(), RankHistogram(), and RemovePixel().

◆ m_Compare

template<typename TInputPixel>
Compare itk::Function::RankHistogram< TInputPixel >::m_Compare
private

Definition at line 265 of file itkRankHistogram.h.

Referenced by AddPixel(), RankHistogram(), and RemovePixel().

◆ m_Entries

template<typename TInputPixel>
SizeValueType itk::Function::RankHistogram< TInputPixel >::m_Entries
private

◆ m_Initialized

template<typename TInputPixel>
bool itk::Function::RankHistogram< TInputPixel >::m_Initialized
private

Definition at line 266 of file itkRankHistogram.h.

Referenced by AddPixel(), IsValid(), operator=(), RankHistogram(), and RemovePixel().

◆ m_InitVal

template<typename TInputPixel>
TInputPixel itk::Function::RankHistogram< TInputPixel >::m_InitVal
private

Definition at line 264 of file itkRankHistogram.h.

Referenced by operator=(), and RankHistogram().

◆ m_Map

template<typename TInputPixel>
MapType itk::Function::RankHistogram< TInputPixel >::m_Map
private

◆ m_Rank

template<typename TInputPixel>
float itk::Function::RankHistogram< TInputPixel >::m_Rank
protected

Definition at line 255 of file itkRankHistogram.h.

Referenced by GetValue(), GetValueBruteForce(), operator=(), RankHistogram(), and SetRank().

◆ m_RankIt

template<typename TInputPixel>
MapType::iterator itk::Function::RankHistogram< TInputPixel >::m_RankIt
private

Definition at line 269 of file itkRankHistogram.h.

Referenced by AddPixel(), GetValue(), operator=(), and RankHistogram().

◆ m_RankValue

template<typename TInputPixel>
TInputPixel itk::Function::RankHistogram< TInputPixel >::m_RankValue
private

Definition at line 263 of file itkRankHistogram.h.

Referenced by AddPixel(), GetValue(), operator=(), RankHistogram(), and RemovePixel().


The documentation for this class was generated from the following file: