Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect inclined lines in an image?

i have a question regarding line detection. I have an image (in fact edge image/ edge map) containing some horizontal, some vertical and some inclined lines. I want to find only inclined lines from that image. How can i do that by searching the entire edge map, as i don't have any information about these lines? I have to search the entire map to search the coordinates (or any other related information). Now can any one help me out how to do that?

Thanks alot

like image 736
Developer Avatar asked Jan 19 '26 16:01

Developer


2 Answers

the first thought i have about this problem is only a varient the way to use the hough transform because you can analize the acumulator of hough transform, in this acumulator you have the angle and rho of every line detected you can define that only you care the line that have a angle diferent to 0 and 90

http://homepages.inf.ed.ac.uk/amos/hough.html

http://www.cs.sfu.ca/~hamarneh/ecopy/compvis1999_hough.pdf

Is the best way i can imagine because you have the angle of each line

like image 185
crodriguezo Avatar answered Jan 21 '26 06:01

crodriguezo


This is a maths question really. What you want is a Radon transform: http://en.wikipedia.org/wiki/Radon_transform

like image 39
Nzbuu Avatar answered Jan 21 '26 06:01

Nzbuu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!