23#include <core/exception.h>
24#include <fvfilters/morphology/erosion.h>
25#include <fvutils/color/yuv.h>
31#elif defined(HAVE_OPENCV)
32# include <opencv2/opencv.hpp>
34# error "Neither IPP nor OpenCV available"
79 yuv422planar_copy_uv(
src[0],
126 yuv422planar_copy_uv(
src[0],
137 if (status != ippStsNoErr) {
140#elif defined(HAVE_OPENCV)
141 cv::Mat srcm(
src_roi[0]->height,
161 cv::erode(srcm, dstm, cv::Mat());
165 cv::erode(srcm, dstm, sem, sem_anchor);
Base class for exceptions in Fawkes.
FilterErosion()
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.
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