fix IPPDerivSobel condition

pull/2679/head
Alexander Alekhin 11 years ago
parent b62e59aac0
commit e8d3ebecc7
  1. 2
      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) 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; return false;
if (fabs(delta) > FLT_EPSILON) if (fabs(delta) > FLT_EPSILON)
return false; return false;

Loading…
Cancel
Save