24 #ifndef __FIREVISION_FILTER_H_ 25 #define __FIREVISION_FILTER_H_ 27 #include <fvutils/base/types.h> 28 #include <fvutils/base/roi.h> 38 Filter(
const char *
name,
unsigned int max_num_buffers = 1);
42 orientation_t
ori = ORI_HORIZONTAL,
43 unsigned int buffer_num = 0);
46 unsigned int buffer_num);
52 virtual const char *
name();
54 virtual void apply() = 0 ;
virtual void set_src_buffer(unsigned char *buf, ROI *roi, orientation_t ori=ORI_HORIZONTAL, unsigned int buffer_num=0)
Set source buffer with orientation.
unsigned int _max_num_buffers
Maximum number of buffers.
virtual ~Filter()
Destructor.
virtual const char * name()
Get filter name.
void shrink_region(ROI *r, unsigned int n)
This shrinks the regions as needed for a N x N matrix.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
virtual void apply()=0
Apply the filter.
Filter(const char *name, unsigned int max_num_buffers=1)
Constructor.
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
unsigned char * dst
Destination buffer.
orientation_t * ori
Orientations, one for each source image.
ROI * dst_roi
Destination ROI.
virtual void set_dst_buffer(unsigned char *buf, ROI *roi)
Set the destination buffer.
virtual void set_orientation(orientation_t ori, unsigned int buffer_num)
Set the orientation to apply the filter in.