mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 05:29:54 +08:00
Merge pull request #6335 from themightyoarfish:canny_kernel_sz_fix
This commit is contained in:
commit
d8629b0fa4
@ -607,7 +607,7 @@ void cv::Canny( InputArray _src, OutputArray _dst,
|
||||
}
|
||||
|
||||
if ((aperture_size & 1) == 0 || (aperture_size != -1 && (aperture_size < 3 || aperture_size > 7)))
|
||||
CV_Error(CV_StsBadFlag, "Aperture size should be odd");
|
||||
CV_Error(CV_StsBadFlag, "Aperture size should be odd between 3 and 7");
|
||||
|
||||
if (low_thresh > high_thresh)
|
||||
std::swap(low_thresh, high_thresh);
|
||||
|
Loading…
Reference in New Issue
Block a user