how to detect more lines using hough function

5 Ansichten (letzte 30 Tage)
Jack
Jack am 23 Mär. 2011
Verschoben: DGM am 1 Okt. 2024
i need help
i have an image which i want to detect lines from it i do houg, than hough lines than hough peaks. i impose it on the image but only a few of the lines are detected i tried setting the number of peaks to 10, 100 , 500 1000 it didn't help much.
what do i have to do to make it detect all the lines
Thanks

Akzeptierte Antwort

David Young
David Young am 24 Mär. 2011
Try reducing the threshold parameter in HOUGHPEAKS. The default is half the maximum value in the array.
  2 Kommentare
Jack
Jack am 24 Mär. 2011
Verschoben: DGM am 1 Okt. 2024
Thanks for the quick reply. i will try and experiment with the thresh values and report back my results.
Thanks
Jack
Jack am 26 Mär. 2011
Verschoben: DGM am 1 Okt. 2024
i tried it using the circuit example the problem was keeping the threshold value to default ceil(0.3*max(H(:))) but when i change it to 1 then change the peak values than it works but when i keep peak at 100 and change threshold to 1 says 154 lines, threshold to 10, 0.1 154 lines. so choosing threshol value is not easy as random value .
Thanks for the help

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

Community Treasure Hunt

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

Start Hunting!

Translated by