24#include <core/exception.h>
25#include <fvfilters/morphology/dilation.h>
26#include <fvutils/color/yuv.h>
32#elif defined(HAVE_OPENCV)
33# include <opencv2/opencv.hpp>
35# error "Neither IPP nor OpenCV available"
61 unsigned int se_width,
62 unsigned int se_height,
63 unsigned int se_anchor_x,
64 unsigned int se_anchor_y)
108 yuv422planar_copy_uv(
src[0],
142 ippiDilate_8u_C1IR(
src[0]
166 yuv422planar_copy_uv(
src[0],
177 if (status != ippStsNoErr) {
180#elif defined(HAVE_OPENCV)
181 cv::Mat srcm(
src_roi[0]->height,
201 cv::dilate(srcm, dstm, cv::Mat());
205 cv::dilate(srcm, dstm, sem, sem_anchor);
Base class for exceptions in Fawkes.
virtual void apply()
Apply the filter.
FilterDilation()
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.
Morphological filter interface.
unsigned int se_height
Height of structuring element.
unsigned int se_width
Width of structuring element.
unsigned int se_anchor_y
Anchor point y offset of structuring element.
unsigned char * se
Structuring element.
unsigned int se_anchor_x
Anchor point x offset of structuring element.
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