Classes | Namespaces | Defines | Functions
median.h File Reference
#include <stdint.h>
#include <sstream>
#include <cstdio>
#include <boost/scoped_ptr.hpp>
#include "filters/filter_base.h"
#include "filters/realtime_circular_buffer.h"
Include dependency graph for median.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  filters::MedianFilter< T >
 A median filter which works on arrays. More...
class  filters::MultiChannelMedianFilter< T >
 A median filter which works on arrays. More...

Namespaces

namespace  filters

Defines

#define ELEM_SWAP(a, b)   { register elem_type t=(a);(a)=(b);(b)=t; }
#define median(a, n)   kth_smallest(a,n,(((n)&1)?((n)/2):(((n)/2)-1)))

Functions

template<typename elem_type >
elem_type filters::kth_smallest (elem_type a[], int n, int k)

Define Documentation

#define ELEM_SWAP (   a,
 
)    { register elem_type t=(a);(a)=(b);(b)=t; }

Definition at line 49 of file median.h.

#define median (   a,
 
)    kth_smallest(a,n,(((n)&1)?((n)/2):(((n)/2)-1)))

Definition at line 89 of file median.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines


filters
Author(s): Tully Foote/tfoote@willowgarage.com
autogenerated on Mon Aug 19 2013 11:35:05