Median Filter.
More...
#include <filters.h>
|
| MedianFilter (const size_t n, const yarp::sig::Vector &y0=yarp::sig::Vector(1, 0.0)) |
| Creates a median filter of the specified order. More...
|
|
virtual void | init (const yarp::sig::Vector &y0) |
| Internal state reset. More...
|
|
void | setOrder (const size_t n) |
| Sets new filter order. More...
|
|
size_t | getOrder () const |
| Returns the current filter order. More...
|
|
virtual const yarp::sig::Vector & | filt (const yarp::sig::Vector &u) |
| Performs filtering on the actual input. More...
|
|
virtual const yarp::sig::Vector & | output () const |
| Return current filter output. More...
|
|
virtual | ~IFilter () |
| Destructor. More...
|
|
|
double | median (std::deque< double > &v) |
|
|
std::deque< std::deque< double > > | uold |
|
yarp::sig::Vector | y |
|
size_t | n |
|
size_t | m |
|
Median Filter.
Definition at line 318 of file filters.h.
◆ MedianFilter()
MedianFilter::MedianFilter |
( |
const size_t |
n, |
|
|
const yarp::sig::Vector & |
y0 = yarp::sig::Vector(1,0.0) |
|
) |
| |
Creates a median filter of the specified order.
- Parameters
-
n | the filter order. |
y0 | initial output. |
Definition at line 296 of file filters.cpp.
◆ filt()
const Vector & MedianFilter::filt |
( |
const yarp::sig::Vector & |
u | ) |
|
|
virtual |
Performs filtering on the actual input.
- Parameters
-
u | reference to the actual input. |
- Returns
- the corresponding output.
Implements iCub::ctrl::IFilter.
Definition at line 338 of file filters.cpp.
◆ getOrder()
size_t iCub::ctrl::MedianFilter::getOrder |
( |
| ) |
const |
|
inline |
Returns the current filter order.
Definition at line 352 of file filters.h.
◆ init()
void MedianFilter::init |
( |
const yarp::sig::Vector & |
y0 | ) |
|
|
virtual |
◆ median()
double MedianFilter::median |
( |
std::deque< double > & |
v | ) |
|
|
protected |
◆ output()
virtual const yarp::sig::Vector& iCub::ctrl::MedianFilter::output |
( |
| ) |
const |
|
inlinevirtual |
◆ setOrder()
void MedianFilter::setOrder |
( |
const size_t |
n | ) |
|
Sets new filter order.
- Parameters
-
- Note
- the internal memory is reset.
Definition at line 315 of file filters.cpp.
size_t iCub::ctrl::MedianFilter::m |
|
protected |
size_t iCub::ctrl::MedianFilter::n |
|
protected |
◆ uold
std::deque<std::deque<double> > iCub::ctrl::MedianFilter::uold |
|
protected |
yarp::sig::Vector iCub::ctrl::MedianFilter::y |
|
protected |
The documentation for this class was generated from the following files:
- icub-main/src/libraries/ctrlLib/include/iCub/ctrl/filters.h
- icub-main/src/libraries/ctrlLib/src/filters.cpp