Ardour  9.0-pre0-582-g084a23a80d
MedianFilter< T > Class Template Reference

#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 26 of file MedianFilter.h.

Constructor & Destructor Documentation

◆ MedianFilter() [1/2]

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

Definition at line 29 of file MedianFilter.h.

◆ ~MedianFilter()

template<typename T >
MedianFilter< T >::~MedianFilter ( )
inline

Definition at line 38 of file MedianFilter.h.

◆ MedianFilter() [2/2]

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

Member Function Documentation

◆ drop()

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

Definition at line 113 of file MedianFilter.h.

◆ filter()

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

Definition at line 82 of file MedianFilter.h.

◆ get()

template<typename T >
T MedianFilter< T >::get ( ) const
inline

Definition at line 62 of file MedianFilter.h.

◆ getAt()

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

Definition at line 70 of file MedianFilter.h.

◆ getSize()

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

Definition at line 66 of file MedianFilter.h.

◆ operator=()

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

◆ push()

template<typename T >
void MedianFilter< T >::push ( value)
inline

Definition at line 49 of file MedianFilter.h.

◆ put()

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

Definition at line 104 of file MedianFilter.h.

◆ reset()

template<typename T >
void MedianFilter< T >::reset ( )
inline

Definition at line 77 of file MedianFilter.h.

◆ setPercentile()

template<typename T >
void MedianFilter< T >::setPercentile ( float  p)
inline

Definition at line 43 of file MedianFilter.h.

Member Data Documentation

◆ m_frame

template<typename T >
T* const MedianFilter< T >::m_frame
private

Definition at line 99 of file MedianFilter.h.

◆ m_index

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

Definition at line 102 of file MedianFilter.h.

◆ m_size

template<typename T >
const int MedianFilter< T >::m_size
private

Definition at line 98 of file MedianFilter.h.

◆ m_sorted

template<typename T >
T* const MedianFilter< T >::m_sorted
private

Definition at line 100 of file MedianFilter.h.

◆ m_sortend

template<typename T >
T* const MedianFilter< T >::m_sortend
private

Definition at line 101 of file MedianFilter.h.


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