IPPICV: disable NormDiff_L1_16s_C1R for IPP/ICV 8.2/8.2.1
authorAlexander Alekhin <alexander.alekhin@itseez.com>
Thu, 30 Oct 2014 09:42:27 +0000 (12:42 +0300)
committerAlexander Alekhin <alexander.alekhin@itseez.com>
Wed, 5 Nov 2014 10:26:23 +0000 (13:26 +0300)
modules/core/src/stat.cpp

index 998ae7d..ca56a7c 100644 (file)
@@ -3212,7 +3212,9 @@ double cv::norm( InputArray _src1, InputArray _src2, int normType, InputArray _m
                     type == CV_16UC1 ? (ippiNormDiffFuncNoHint)ippiNormDiff_L1_16u_C1R :
                     type == CV_16UC3 ? (ippiNormDiffFuncNoHint)ippiNormDiff_L1_16u_C3R :
                     type == CV_16UC4 ? (ippiNormDiffFuncNoHint)ippiNormDiff_L1_16u_C4R :
+#if !(IPP_VERSION_X100 == 802 && (!defined(IPP_VERSION_UPDATE) || IPP_VERSION_UPDATE <= 1)) // Oct 2014: Accuracy issue with IPP 8.2 / 8.2.1
                     type == CV_16SC1 ? (ippiNormDiffFuncNoHint)ippiNormDiff_L1_16s_C1R :
+#endif
                     type == CV_16SC3 ? (ippiNormDiffFuncNoHint)ippiNormDiff_L1_16s_C3R :
                     type == CV_16SC4 ? (ippiNormDiffFuncNoHint)ippiNormDiff_L1_16s_C4R :
                     0) :