From e8d3ebecc74f07d06ba603594a17e8012409077d Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Tue, 29 Apr 2014 14:57:44 +0400 Subject: [PATCH] fix IPPDerivSobel condition --- modules/imgproc/src/deriv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/imgproc/src/deriv.cpp b/modules/imgproc/src/deriv.cpp index c0b6e0853a..5e920ec0b8 100644 --- a/modules/imgproc/src/deriv.cpp +++ b/modules/imgproc/src/deriv.cpp @@ -410,7 +410,7 @@ static bool IPPDerivScharr(InputArray _src, OutputArray _dst, int ddepth, int dx static bool IPPDerivSobel(InputArray _src, OutputArray _dst, int ddepth, int dx, int dy, int ksize, double scale, double delta, int borderType) { - if ((borderType != BORDER_REPLICATE) || (3 != ksize) || (5 != ksize)) + if ((borderType != BORDER_REPLICATE) || ((3 != ksize) && (5 != ksize))) return false; if (fabs(delta) > FLT_EPSILON) return false; -- GitLab