那是什么OpenCV的用于查找轮廓的算法?那是什么、轮廓、算法、OpenCV

2023-09-11 00:10:57 作者:吶谁、厮守①生

我需要使用 CV :: FindContours()在一个程序中,我必须知道背后的算法。

I need to use cv::FindContours() in a program and I have to know the algorithm behind that.

做什么算法 OpenCV的使用找到的轮廓?

What algorithm does openCV use to find contours?

它是如何工作的?

推荐答案

如果你读了documentation它被提及此函数实现的算法:

If you read the documentation it is mentioned this function implements the algorithm of:

铃木,S和安倍晋三,K.,数字化的拓扑结构分析   通过边界二值图像跟踪。 CVGIP 30 1,第32-46(1985)

Suzuki, S. and Abe, K., Topological Structural Analysis of Digitized Binary Images by Border Following. CVGIP 30 1, pp 32-46 (1985)

OpenCV的是开源的,如果你想看到这是如何实现的只是需要读取code: http://$c$c.opencv.org/projects/opencv/repository/revisions/2.4.3/entry/modules/imgproc/src/contours.cpp

OpenCV is open source if you want to see how this is implemented just need to read the code: http://code.opencv.org/projects/opencv/repository/revisions/2.4.3/entry/modules/imgproc/src/contours.cpp

答案之一为this问题有的链接本文所讨论。

 
精彩推荐
图片推荐