我需要在程序中使用 cv::FindContours()
,我必须知道它背后的算法。
openCV 使用什么算法来查找轮廓?
它是如何工作的?
最佳答案
如果您阅读 documentation提到这个函数实现了以下算法:
Suzuki, S. and Abe, K., Topological Structural Analysis of Digitized Binary Images by Border Following. CVGIP 30 1, pp 32-46 (1985)
OpenCV 是开源的,如果你想看看它是如何实现的只需要阅读代码: https://github.com/opencv/opencv/blob/master/modules/imgproc/src/contours.cpp#L1655
论文可用here .
关于algorithm - opencv 用于查找轮廓的算法是什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10427474/