23 #include <fvfilters/or.h> 25 #include <core/exception.h> 31 #elif defined(HAVE_OPENCV) 34 # error "Neither IPP nor OpenCV available" 67 src_roi[0]->line_step,
68 src[1] + (src_roi[1]->start.y * src_roi[1]->line_step) + (src_roi[1]->start.x * src_roi[1]->pixel_step),
69 src_roi[1]->line_step,
74 src_roi[0]->line_step,
75 src[1] + (src_roi[1]->start.y * src_roi[1]->line_step) + (src_roi[1]->start.x * src_roi[1]->pixel_step),
76 src_roi[1]->line_step,
82 if ( status != ippStsNoErr ) {
85 #elif defined(HAVE_OPENCV) 95 src_roi[0]->line_step);
97 cv::Mat srcm_1(src_roi[1]->height, src_roi[1]->width, CV_8UC1,
99 (src_roi[1]->start.y * src_roi[1]->line_step) +
100 (src_roi[1]->start.x * src_roi[1]->pixel_step),
101 src_roi[1]->line_step);
109 cv::bitwise_or(srcm_0, srcm_1, dstm);
virtual void apply()
Apply the filter.
fawkes::point_t start
ROI start.
unsigned int x
x coordinate
unsigned int width
ROI width.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
Base class for exceptions in Fawkes.
unsigned int y
y coordinate
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
unsigned int height
ROI height.
unsigned int line_step
line step
unsigned char * dst
Destination buffer.
unsigned int pixel_step
pixel step
ROI * dst_roi
Destination ROI.