<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>GuruBlog : Articles about computervision</title>
    <description>local-guru.net</description>
    <link>http://www.local-guru.net/blog</link>
    <ttl>40</ttl>
    <item>
      <title>line detection with hough-transform</title>
      <link>http://www.local-guru.net//blog/2010/1/19/line-detection-with-hough-transform</link>
      <description>&lt;p&gt;I wrote a small processing sketch to work out how linedetection using
&lt;a href="http://en.wikipedia.org/wiki/Hough_transform"&gt;hough-transform&lt;/a&gt; works.&lt;/p&gt;

&lt;p&gt;&lt;a href="http://www.local-guru.net/processing/hough_transform"&gt;click here&lt;/a&gt; to
see it in action and get the sourcecode. the code is not optimised for
speed but for my understanding :-) so don't complain if it doesn't work
on live-video.&lt;/p&gt;

&lt;p&gt;the algorithm takes a image that has run through an edge detection
algorithm and turned into a black/white image and find where things
like edges or circles are by converting the pixels from
imagespace to a parameterspace where such detection is much easyer.&lt;/p&gt;

&lt;p&gt;for each pixel that is set in the source image a set of parameters
that satisfy the formular r = x * cos(roh) + y * sin(roh) is
calculated and r and roh are plotted as the parameterspace image&lt;/p&gt;

&lt;p&gt;every line in the input image results in a bunch of lines in the
parameterspace that have a common intersection point.&lt;/p&gt;

&lt;p&gt;in my example i use a input image like this&lt;/p&gt;

&lt;p&gt;&lt;img src="http://www.local-guru.net/img/guru/hough_input.png" alt="input" /&gt;&lt;/p&gt;

&lt;p&gt;calculate how it looks in parameter space&lt;/p&gt;

&lt;p&gt;&lt;img src="http://www.local-guru.net/img/guru/hough_parameter.png" alt="parameter space" /&gt;&lt;/p&gt;

&lt;p&gt;and then reconstruct where the lines are&lt;/p&gt;

&lt;p&gt;&lt;img src="http://www.local-guru.net/img/guru/hough_reconstruct.png" alt="reconstruct" /&gt;&lt;/p&gt;
</description>
      <pubDate>2010-01-19T03:23:00+01:00</pubDate>
    </item>
  </channel>
</rss>

