24 #include <core/exception.h>
25 #include <fvfilters/morphology/dilation.h>
26 #include <fvutils/color/yuv.h>
32 #elif defined(HAVE_OPENCV)
33 # if CV_MAJOR_VERSION < 2 || (CV_MAJOR_VERSION == 2 && CV_MINOR_VERSION < 4)
34 # include <opencv/cv.h>
36 # include <opencv/cv.hpp>
38 # error "Neither IPP nor OpenCV available"
41 namespace firevision {
64 unsigned int se_width,
65 unsigned int se_height,
66 unsigned int se_anchor_x,
67 unsigned int se_anchor_y)
111 yuv422planar_copy_uv(
src[0],
145 ippiDilate_8u_C1IR(
src[0]
169 yuv422planar_copy_uv(
src[0],
180 if (status != ippStsNoErr) {
183 #elif defined(HAVE_OPENCV)
184 cv::Mat srcm(
src_roi[0]->height,
204 cv::dilate(srcm, dstm, cv::Mat());
208 cv::dilate(srcm, dstm, sem, sem_anchor);