Automatic calculation of low and high thresholds for the Canny operation in opencv

后端 未结 7 896
孤独总比滥情好
孤独总比滥情好 2020-11-28 03:15

In openCV, the low and high thresholds for the canny operator are mandatory:

cvCanny(input,output,thresh1,thresh2)

In Matlab, there\'s an o

7条回答
  •  春和景丽
    2020-11-28 03:29

    Also, there is code available to do this automatically, by putting this in the OpenCV build. I found it on the OpenCV-users mailing list, so no guarantees. :)

    Discussion: http://opencv-users.1802565.n2.nabble.com/Automatic-thresholding-in-cvCanny-td5871024.html GitHub (code): https://gist.github.com/756833

提交回复
热议问题