24#include <core/exceptions/software.h>
25#include <fvfilters/filter.h>
53 if (max_num_buffers == 0) {
95 src[buffer_num] = buf;
97 this->ori[buffer_num] =
ori;
113 src[buffer_num] = buf;
115 ori[buffer_num] = ORI_HORIZONTAL;
141 this->ori[buffer_num] = ORI_HORIZONTAL;
160 if (r->
start.
x < (n / 2)) {
163 if (r->
start.
y < (n / 2)) {
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
virtual void set_dst_buffer(unsigned char *buf, ROI *roi)
Set the destination buffer.
unsigned int _max_num_buffers
Maximum number of buffers.
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.
Filter(const char *name, unsigned int max_num_buffers=1)
Constructor.
virtual ~Filter()
Destructor.
unsigned char * dst
Destination buffer.
ROI * dst_roi
Destination ROI.
orientation_t * ori
Orientations, one for each source image.
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.
virtual void set_orientation(orientation_t ori, unsigned int buffer_num)
Set the orientation to apply the filter in.
unsigned int height
ROI height.
fawkes::upoint_t start
ROI start.
unsigned int width
ROI width.
unsigned int image_width
width of image that contains this ROI
unsigned int image_height
height of image that contains this ROI
Fawkes library namespace.
unsigned int x
x coordinate
unsigned int y
y coordinate