24 #include <fvfilters/morphology/dilation.h>
26 #include <fvutils/color/yuv.h>
27 #include <core/exception.h>
33 #elif defined(HAVE_OPENCV)
36 # error "Neither IPP nor OpenCV available"
39 namespace firevision {
51 FilterDilation::FilterDilation()
67 unsigned int se_width,
unsigned int se_height,
68 unsigned int se_anchor_x,
unsigned int se_anchor_y)
111 yuv422planar_copy_uv(
src[0],
dst,
137 if ( (
dst == NULL) || (
dst ==
src[0]) ) {
143 se, mask_size, mask_anchor);
153 se, mask_size, mask_anchor);
155 yuv422planar_copy_uv(
src[0],
dst,
163 if ( status != ippStsNoErr ) {
166 #elif defined(HAVE_OPENCV)
171 src_roi[0]->line_step);
182 cv::dilate(srcm, dstm, cv::Mat());
186 cv::dilate(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.
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.
FilterDilation()
Constructor.
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.
unsigned int height
ROI height.
unsigned int se_width
Width of structuring element.
unsigned int line_step
line step
virtual void apply()
Apply the filter.
unsigned char * dst
Destination buffer.
unsigned int pixel_step
pixel step
ROI * dst_roi
Destination ROI.