Merge pull request #2677 from ilya-lavrenov:ipp_compilation
authorAlexander Alekhin <alexander.alekhin@itseez.com>
Tue, 29 Apr 2014 08:26:48 +0000 (12:26 +0400)
committerOpenCV Buildbot <buildbot@opencv.org>
Tue, 29 Apr 2014 08:26:49 +0000 (12:26 +0400)
modules/calib3d/src/stereosgbm.cpp

index a1db5c4..985d81a 100644 (file)
@@ -1084,7 +1084,7 @@ void cv::filterSpeckles( InputOutputArray _img, double _newval, int maxSpeckleSi
 
     int newVal = cvRound(_newval), maxDiff = cvRound(_maxDiff);
 
-#if defined HAVE_IPP && !defined HAVE_IPP_ICV_ONLY
+#if IPP_VERSION_X100 >= 801 && !defined HAVE_IPP_ICV_ONLY
     Ipp32s bufsize = 0;
     IppiSize roisize = { img.cols, img.rows };
     IppDataType datatype = type == CV_8UC1 ? ipp8u : ipp16s;