Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 53

Improving line extraction from HoughLinesP

$
0
0
Hi, I am using `HoughLinesP` to extract lines from grayscale image. Below is my psudo code. threshold(img_tmp,bin_img,30,255,cv::THRESH_BINARY); Canny(bin_img, canny_img, 50, 255, 3); vector tmp_lines; HoughLinesP(canny_img,tmp_lines, 1, CV_PI/360,10, 10, 1); As seen in below image single edge (i.e single line in image) is returning more than one line. 16,22 and 0,28 and 10,11 and 23,18,24 lines correspond to single line. How can i get single line for single edge, any suggestions ? **Input image:** ![Input image ](https://minecraft-ros.googlecode.com/files/map_whole_house_13_02_17_fixed.jpg) **Extracted lines** ![image description](/upfiles/1425480053468116.jpg) **Zoomed image** ![image description](/upfiles/14254805644925057.png) thanks.

Viewing all articles
Browse latest Browse all 53

Latest Images

Trending Articles



Latest Images