21 #include <odindata/filter_step.h>
27 STD_string
label()
const {
return "min";}
28 STD_string
description()
const {
return "Clip all values below minimum value";}
40 STD_string
label()
const {
return "max";}
41 STD_string
description()
const {
return "Clip all values above maximum value";}
52 float getThresh(
bool upper)
const;
56 class FilterTypeMin :
public FilterType {
57 STD_string label()
const {
return "typemin";}
58 STD_string description()
const {
return "Clip all values below minimum of a specific datatype";}
60 FilterStep* allocate()
const {
return new FilterTypeMin();}
63 class FilterTypeMax :
public FilterType {
64 STD_string label()
const {
return "typemax";}
65 STD_string description()
const {
return "Clip all values above maximum of a specific datatype";}
67 FilterStep* allocate()
const {
return new FilterTypeMax();}
virtual bool process(FileIO::ProtocolDataMap &pdmap) const
virtual bool process(Data< float, 4 > &data, Protocol &prot) const
virtual FilterStep * allocate() const=0
virtual STD_string description() const=0
virtual STD_string label() const=0