23 #ifndef _FIREVISION_FILTER_THRESHOLD_H_
24 #define _FIREVISION_FILTER_THRESHOLD_H_
26 #if !(defined(HAVE_IPP) || defined(HAVE_OPENCV))
27 # error "Neither IPP nor OpenCV installed"
30 #include <fvfilters/filter.h>
32 namespace firevision {
38 unsigned char min_replace = 0,
39 unsigned char max = 127,
40 unsigned char max_replace = 255);
43 unsigned char min_replace,
45 unsigned char max_replace);
52 unsigned char min_replace;
53 unsigned char max_replace;
void set_thresholds(unsigned char min, unsigned char min_replace, unsigned char max, unsigned char max_replace)
Set new thresholds.
virtual void apply()
Apply the filter.
FilterThreshold(unsigned char min=128, unsigned char min_replace=0, unsigned char max=127, unsigned char max_replace=255)
Constructor.