#include <MedianFilter.h>

Public Member Functions

 MedianFilter (int size, float percentile=50.f)
 
 ~MedianFilter ()
 
void setPercentile (float p)
 
void push (T value)
 
get () const
 
int getSize () const
 
getAt (float percentile)
 
void reset ()
 

Static Public Member Functions

static std::vector< T > filter (int size, const std::vector< T > &in)
 

Private Member Functions

void put (T value)
 
void drop (T value)
 
 MedianFilter (const MedianFilter &)
 
MedianFilteroperator= (const MedianFilter &)
 

Private Attributes

const int m_size
 
T *const m_frame
 
T *const m_sorted
 
T *const m_sortend
 
int m_index
 

Detailed Description

template<typename T>
class MedianFilter< T >

Definition at line 25 of file MedianFilter.h.

Constructor & Destructor Documentation

template<typename T>
MedianFilter< T >::MedianFilter ( int  size,
float  percentile = 50.f 
)
inline
template<typename T>
MedianFilter< T >::~MedianFilter ( )
inline

Definition at line 37 of file MedianFilter.h.

References MedianFilter< T >::m_frame, and MedianFilter< T >::m_sorted.

template<typename T>
MedianFilter< T >::MedianFilter ( const MedianFilter< T > &  )
private

Member Function Documentation

template<typename T>
void MedianFilter< T >::setPercentile ( float  p)
inline
template<typename T>
void MedianFilter< T >::push ( value)
inline
template<typename T>
T MedianFilter< T >::get ( ) const
inline

Definition at line 61 of file MedianFilter.h.

References MedianFilter< T >::m_index, and MedianFilter< T >::m_sorted.

Referenced by MedianFilter< T >::filter().

template<typename T>
int MedianFilter< T >::getSize ( ) const
inline

Definition at line 65 of file MedianFilter.h.

References MedianFilter< T >::m_size.

template<typename T>
T MedianFilter< T >::getAt ( float  percentile)
inline

Definition at line 69 of file MedianFilter.h.

References MedianFilter< T >::m_size, and MedianFilter< T >::m_sorted.

template<typename T>
void MedianFilter< T >::reset ( )
inline
template<typename T>
static std::vector<T> MedianFilter< T >::filter ( int  size,
const std::vector< T > &  in 
)
inlinestatic

Definition at line 81 of file MedianFilter.h.

References MedianFilter< T >::get(), and MedianFilter< T >::push().

template<typename T>
void MedianFilter< T >::put ( value)
inlineprivate

Definition at line 103 of file MedianFilter.h.

Referenced by MedianFilter< T >::push().

template<typename T>
void MedianFilter< T >::drop ( value)
inlineprivate
template<typename T>
MedianFilter& MedianFilter< T >::operator= ( const MedianFilter< T > &  )
private

Referenced by MedianFilter< T >::drop().

Member Data Documentation

template<typename T>
const int MedianFilter< T >::m_size
private
template<typename T>
T* const MedianFilter< T >::m_frame
private
template<typename T>
T* const MedianFilter< T >::m_sorted
private
template<typename T>
T* const MedianFilter< T >::m_sortend
private

Definition at line 100 of file MedianFilter.h.

template<typename T>
int MedianFilter< T >::m_index
private

Definition at line 101 of file MedianFilter.h.

Referenced by MedianFilter< T >::get(), and MedianFilter< T >::setPercentile().


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