From d9013a85f1f737077638166f27eafc750a722cac Mon Sep 17 00:00:00 2001 From: vbystricky Date: Mon, 7 Apr 2014 17:38:43 +0400 Subject: [PATCH] Fix IPP version ifdef --- modules/imgproc/src/moments.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/moments.cpp b/modules/imgproc/src/moments.cpp index 9d92e47..f57b07f 100644 --- a/modules/imgproc/src/moments.cpp +++ b/modules/imgproc/src/moments.cpp @@ -466,7 +466,7 @@ cv::Moments cv::moments( InputArray _src, bool binary ) if( cn > 1 ) CV_Error( CV_StsBadArg, "Invalid image type (must be single-channel)" ); -#if defined HAVE_IPP && (IPP_VERSION_MAJOR >= 8) && (IPP_VERSION_MINOR >= 1) +#if defined HAVE_IPP && (IPP_VERSION_MAJOR * 10 + IPP_VERSION_MINOR >= 81) if (!binary) { IppiSize roi = {mat.cols, mat.rows}; -- 2.7.4