23 #include <core/exception.h>
24 #include <fvfilters/sharpen.h>
28 #elif defined(HAVE_OPENCV)
29 # include <opencv2/opencv.hpp>
31 # error "Neither IPP nor OpenCV available"
34 namespace firevision {
65 if (status != ippStsNoErr) {
68 #elif defined(HAVE_OPENCV)
73 cv::Mat srcm(
src_roi[0]->height,
87 cv::Mat kernel(3, 3, CV_32F);
88 float * kernel_f = (
float *)kernel.ptr();
99 cv::Point kanchor(1, 1);
101 cv::filter2D(srcm, dstm, -1, kernel, kanchor);
Base class for exceptions in Fawkes.
FilterSharpen()
Constructor.
virtual void apply()
Apply the filter.
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