fix IPPDerivSobel condition

This commit is contained in:
Alexander Alekhin
2014-04-29 14:57:44 +04:00
parent b62e59aac0
commit e8d3ebecc7

View File

@@ -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;