Merge pull request #20919 from berak:patch-1

pull/20928/head^2
Alexander Alekhin 3 years ago
commit aa11cc19e8
  1. 1
      modules/imgproc/src/hough.cpp

@ -1728,7 +1728,6 @@ static void HoughCircles( InputArray _image, OutputArray _circles,
}
CV_Assert(!_image.empty() && _image.type() == CV_8UC1 && (_image.isMat() || _image.isUMat()));
CV_Assert(_circles.isMat() || _circles.isVector());
if( dp <= 0 || minDist <= 0 || param1 <= 0 || param2 <= 0)
CV_Error( Error::StsOutOfRange, "dp, min_dist, canny_threshold and acc_threshold must be all positive numbers" );

Loading…
Cancel
Save