After starting the Canny edge detector in the image, I get clear lines. But the Hough line function seems to be missing on fairly noticeable lines when run on the edgemap Canny image. I keep only vertical and horizontal lines of Hough (tolerance of 15 degrees). Many extra lines are drawing closer, but clearly visible lines bounding the rectangles are not collected.
Here's a snippet:
cvCanny( img, canny, 0, 100, 3 ); lines = cvHoughLines2( canny, storage, CV_HOUGH_PROBABILISTIC, 1, CV_PI/180, 35, 20, 10 );
The main intention is to discover the rectangular rectangles that indicate the nodes of the linked list. However, the squares.c sample program only detects perfect rectangles, but if the arrow does not touch the border of the rectangle.
Could you explain some changes in the function of the Hough line that will help me get the hough lines that correspond to the clearly visible lines in the Canny edge image?

source share