spacial median filter rejecting abnormal signals.
Dependents: medianFilterTest WIPV
MEDIAN_FILTER.h@1:a46f56a22432, 2016-04-22 (annotated)
- Committer:
- adam_z
- Date:
- Fri Apr 22 16:19:03 2016 +0000
- Revision:
- 1:a46f56a22432
- Parent:
- 0:4487376ead1c
make it more like a class
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
adam_z | 1:a46f56a22432 | 1 | #ifndef __MEDIAN_FILTER_H |
adam_z | 1:a46f56a22432 | 2 | #define __MEDIAN_FILTER_H |
adam_z | 0:4487376ead1c | 3 | |
adam_z | 0:4487376ead1c | 4 | |
adam_z | 0:4487376ead1c | 5 | |
adam_z | 1:a46f56a22432 | 6 | class MedianFilter |
adam_z | 0:4487376ead1c | 7 | { |
adam_z | 0:4487376ead1c | 8 | public: |
adam_z | 0:4487376ead1c | 9 | float ouput; |
adam_z | 0:4487376ead1c | 10 | int windowSize_; |
adam_z | 0:4487376ead1c | 11 | float array[]; |
adam_z | 0:4487376ead1c | 12 | |
adam_z | 1:a46f56a22432 | 13 | MedianFilter(int windowSize); |
adam_z | 1:a46f56a22432 | 14 | float MedianValue(float data); |
adam_z | 0:4487376ead1c | 15 | |
adam_z | 0:4487376ead1c | 16 | }; |
adam_z | 0:4487376ead1c | 17 | |
adam_z | 0:4487376ead1c | 18 | #endif |