How to get access of the individual houghlines detected in a image

After using houghlines to detect lines in a image I was able to get the image like this
Can someone explain how to get access to a individual line to detect the edge along that line only

回答 (1 件)

Sandhu
Sandhu 2011 年 10 月 27 日

0 投票

P = houghpeaks(H,5,'threshold',ceil(0.3*max(H(:))));
u can access hough line from here. in 'P' variable(2-d matrix) Hough lines coordinates will store. if u can take it out and use in a place where u need. check in P variable.

3 件のコメント

Gova ReDDy
Gova ReDDy 2011 年 10 月 27 日
But my requirement is to detect the edge along that line only.
Is this possible ?
Sandhu
Sandhu 2011 年 10 月 27 日
ha ha ha ha.....
Gova ReDDy
Gova ReDDy 2011 年 10 月 28 日
So houghlines are only used to detect the lines in a image

サインインしてコメントする。

製品

質問済み:

2011 年 10 月 25 日

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by