分组/连接图像中的共线段

时间:2017-09-06 13:31:47

标签: opencv computer-vision image-segmentation hough-transform

我正在从航拍图像中提取道路。我在二进制图像上应用了Hough-Line变换

lines = cv2.HoughLinesP(image=edges,rho=1,theta=np.pi/180, threshold=10,lines=np.array([]), minLineLength=5,maxLineGap=3)

因此我得到了细分,我想加入这些细分市场。我可以想到将共线线段分组并拟合中心线,但我无法弄清楚如何根据接近度/连通性对线段进行分组,还是有其他方法来连接共线线段? enter image description here enter image description here enter image description here

0 个答案:

没有答案
相关问题