23 #include <core/exception.h>
24 #include <fvfilters/hipass.h>
28 #elif defined(HAVE_OPENCV)
29 # if CV_MAJOR_VERSION < 2 || (CV_MAJOR_VERSION == 2 && CV_MINOR_VERSION < 4)
30 # include <opencv/cv.h>
32 # include <opencv/cv.hpp>
34 # error "Neither IPP nor OpenCV available"
37 namespace firevision {
68 if (status != ippStsNoErr) {
72 #elif defined(HAVE_OPENCV)
73 cv::Mat srcm(
src_roi[0]->height,
92 cv::Mat kernel(3, 3, CV_32F);
93 float * kernel_f = (
float *)kernel.ptr();
104 cv::Point kanchor(1, 1);
106 cv::filter2D(srcm, dstm, -1, kernel, kanchor);
Base class for exceptions in Fawkes.
virtual void apply()
Apply the filter.
FilterHipass()
Constructor.
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
unsigned char * dst
Destination buffer.
ROI * dst_roi
Destination ROI.
unsigned int height
ROI height.
fawkes::upoint_t start
ROI start.
unsigned int line_step
line step
unsigned int width
ROI width.
unsigned int pixel_step
pixel step
unsigned int x
x coordinate
unsigned int y
y coordinate