23 #include <fvfilters/gauss.h> 29 #elif defined(HAVE_OPENCV) 30 # if CV_MAJOR_VERSION < 2 || (CV_MAJOR_VERSION == 2 && CV_MINOR_VERSION < 4) 31 # include <opencv/cv.h> 33 # include <opencv/cv.hpp> 35 # error "Neither IPP nor OpenCV available" 92 #elif defined(HAVE_OPENCV) 93 cv::Mat srcm(src_roi[0]->height, src_roi[0]->width, CV_8UC1,
95 (src_roi[0]->start.y * src_roi[0]->line_step) +
96 (src_roi[0]->start.x * src_roi[0]->pixel_step),
97 src_roi[0]->line_step);
107 cv::GaussianBlur(srcm, dstm, cv::Size(5, 5), 1.0);
FilterGauss()
Constructor.
fawkes::upoint_t start
ROI start.
unsigned int y
y coordinate
unsigned int x
x coordinate
unsigned int width
ROI width.
virtual void apply()
Apply the filter.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
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.