From: vbystricky Date: Fri, 4 Apr 2014 09:00:18 +0000 (+0400) Subject: Check 8.1 ipp version for gaussian functions, which not exists in versions before... X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~3336^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06acb8b0ee58b2fa8710a4f73d3ef54e65e7d4a8;p=platform%2Fupstream%2Fopencv.git Check 8.1 ipp version for gaussian functions, which not exists in versions before this. --- diff --git a/modules/imgproc/src/morph.cpp b/modules/imgproc/src/morph.cpp index d8eaa0a..7c6d08c 100644 --- a/modules/imgproc/src/morph.cpp +++ b/modules/imgproc/src/morph.cpp @@ -1459,7 +1459,7 @@ static void morphOp( int op, InputArray _src, OutputArray _dst, Size ksize = kernel.data ? kernel.size() : Size(3,3); anchor = normalizeAnchor(anchor, ksize); -#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 7) +#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 8) && (IPP_VERSION_MINOR >= 1) if( IPPMorphOp(op, _src, _dst, kernel, anchor, iterations, borderType, borderValue) ) return; #endif diff --git a/modules/imgproc/src/smooth.cpp b/modules/imgproc/src/smooth.cpp index 9de25bd..85978c9 100644 --- a/modules/imgproc/src/smooth.cpp +++ b/modules/imgproc/src/smooth.cpp @@ -1109,7 +1109,7 @@ void cv::GaussianBlur( InputArray _src, OutputArray _dst, Size ksize, return; #endif -#if defined HAVE_IPP && (IPP_VERSION_MAJOR >= 7) +#if defined (HAVE_IPP) && (IPP_VERSION_MAJOR >= 8) && (IPP_VERSION_MINOR >= 1) if( type == CV_32FC1 && sigma1 == sigma2 && ksize.width == ksize.height && sigma1 != 0.0 ) { Mat src = _src.getMat(), dst = _dst.getMat();