23 #include <fvfilters/or.h> 25 #include <core/exception.h> 31 #elif defined(HAVE_OPENCV) 32 # if CV_MAJOR_VERSION < 2 || (CV_MAJOR_VERSION == 2 && CV_MINOR_VERSION < 4) 33 # include <opencv/cv.h> 35 # include <opencv/cv.hpp> 37 # error "Neither IPP nor OpenCV available" 70 src_roi[0]->line_step,
71 src[1] + (src_roi[1]->start.y * src_roi[1]->line_step) + (src_roi[1]->start.x * src_roi[1]->pixel_step),
72 src_roi[1]->line_step,
77 src_roi[0]->line_step,
78 src[1] + (src_roi[1]->start.y * src_roi[1]->line_step) + (src_roi[1]->start.x * src_roi[1]->pixel_step),
79 src_roi[1]->line_step,
85 if ( status != ippStsNoErr ) {
88 #elif defined(HAVE_OPENCV) 98 src_roi[0]->line_step);
100 cv::Mat srcm_1(src_roi[1]->height, src_roi[1]->width, CV_8UC1,
102 (src_roi[1]->start.y * src_roi[1]->line_step) +
103 (src_roi[1]->start.x * src_roi[1]->pixel_step),
104 src_roi[1]->line_step);
112 cv::bitwise_or(srcm_0, srcm_1, dstm);
virtual void apply()
Apply the filter.
fawkes::upoint_t start
ROI start.
unsigned int y
y coordinate
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.
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.