Content deleted Content added
Citation bot (talk | contribs) Removed URL that duplicated unique identifier. | You can use this bot yourself. Report bugs here. | Activated by Neko-chan | Category:Image processing | via #UCB_Category |
mNo edit summary |
||
(6 intermediate revisions by 6 users not shown) | |||
Line 1:
{{Short description|Algorithm}}
In image processing, '''line detection''' is an algorithm that takes a collection of ''n'' [[edge detection|edge points]] and finds all the lines on which these edge points lie.<ref name=":0">{{Cite book|title=Digital image processing and analysis : human and computer vision applications with CVIPtools|last=Umbaugh|first=Scott E.|date=2011|publisher=CRC Press|isbn=9781439802052|edition=2nd|___location=Boca Raton, FL|oclc=491888664}}</ref> The most popular line detectors are the [[Hough transform]] and [[Kernel (image processing)|convolution]]-based techniques.<ref>{{Cite web|url=http://www.mathworks.com/help/images/ref/hough.html|title=Hough transform - MATLAB hough|website=www.mathworks.com|access-date=2018-04-23}}</ref>
== Hough transform ==
The [[Hough transform]]<ref name="
==
In a [[Kernel (image processing)|convolution]]-based technique, the line detector operator consists of a convolution masks tuned to detect the presence of lines of a particular width n and a θ orientation. Here are the four convolution masks to detect horizontal, vertical, oblique (+45 degrees), and oblique (−45 degrees) lines in an image.
Line 248 ⟶ 249:
The code was used to detect only the vertical lines in an image using Matlab and the result is below. The original image is the one on the top and the result is below it. As can be seen on the picture on the right, only the vertical lines were detected
[[File:Testbuilding.jpg|thumb|Original Image]]
[[File:LineImage
<syntaxhighlight lang="matlab">
clear all
|