Line detection //contour tracing/plot...pls help needed in matlab
Show older comments
For the given image the lines are detected using hough transform.What should be done to connect these lines?? Pls help me with tha matlab coding..

Answers (1)
Image Analyst
on 5 Feb 2014
0 votes
What does "connect" mean to you? Do you want every single endpoint connected to every other endpoint with a line drawn in the overlay? Or what? Maybe you want edgelinking http://www.csse.uwa.edu.au/~pk/Research/MatlabFns/#edgelink?
5 Comments
Abinaya
on 5 Feb 2014
Image Analyst
on 5 Feb 2014
So try the link. Basically you have to examine all endpoints and if another endpoint is nearby by not yet connected, you have to check the angle that would be formed by the connecting link and the two existing segments. If the angle is small enough, then make the connection.
Abinaya
on 7 Feb 2014
Image Analyst
on 7 Feb 2014
Can you mark it as Accepted? You can still come back with questions though.
keagan
on 3 Jun 2014
Hello Image Analyst
With regards to line detection for a square, using hough transform, I have detected the lines of the square but I need your help with something. How do I say in matlab code that the 2 lines on the rows is perpedicular and the lines on the columns also are and also to say the angles are 90 degrees at the edges to make it a square.
please advice thanks
Categories
Find more on Object Analysis in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!