23 #include <fvfilters/morphology/erosion.h> 25 #include <fvutils/color/yuv.h> 26 #include <core/exception.h> 32 #elif defined(HAVE_OPENCV) 34 # include <opencv2/imgproc.hpp> 36 # error "Neither IPP nor OpenCV available" 84 yuv422planar_copy_uv(
src[0],
dst,
104 se, mask_size, mask_anchor);
114 se, mask_size, mask_anchor);
118 yuv422planar_copy_uv(
src[0],
dst,
126 if ( status != ippStsNoErr ) {
129 #elif defined(HAVE_OPENCV) 134 src_roi[0]->line_step);
145 cv::erode(srcm, dstm, cv::Mat());
149 cv::erode(srcm, dstm, sem, sem_anchor);
unsigned int se_anchor_y
Anchor point y offset of structuring element.
unsigned int se_anchor_x
Anchor point x offset of structuring element.
virtual void apply()
Apply the filter.
fawkes::point_t start
ROI start.
unsigned int x
x coordinate
unsigned int width
ROI width.
unsigned char * se
Structuring element.
unsigned int se_height
Height of structuring element.
Morphological filter interface.
unsigned char ** src
Source buffers, dynamically allocated by Filter ctor.
Base class for exceptions in Fawkes.
unsigned int y
y coordinate
ROI ** src_roi
Source ROIs, dynamically allocated by Filter ctor.
FilterErosion()
Constructor.
unsigned int height
ROI height.
unsigned int se_width
Width of structuring element.
unsigned int line_step
line step
unsigned char * dst
Destination buffer.
unsigned int pixel_step
pixel step
ROI * dst_roi
Destination ROI.