filter_nan.h
1 //
2 // C++ Interface: filter_nan
3 //
4 // Description:
5 //
6 //
7 // Author: <Enrico Reimer>, (C) 2007
8 //
9 // Copyright: See COPYING file that comes with this distribution
10 //
11 //
12 #ifndef FILTER_NAN_H
13 #define FILTER_NAN_H
14 
15 #include <odindata/filter_step.h>
16 
20 class FilterNaN : public FilterStep
21 {
22  LDRfloat replace;
23 
24  STD_string label() const {return "noNaN";}
25  STD_string description() const {return "Replaces every NaN by the given value";}
26  bool process(Data<float,4>& data, Protocol& prot)const;
27  FilterStep* allocate() const {return new FilterNaN();}
28  void init();
29 };
30 
31 #endif
Protcol proxy.
Definition: protocol.h:33