<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676</link>
    <title>MATLAB Central Newsreader - extracting a line from an image using hough transform</title>
    <description>Feed for thread: extracting a line from an image using hough transform</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 26 Feb 2009 05:13:01 -0500</pubDate>
      <title>Re: extracting a line from an image using hough transform</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676#630929</link>
      <author>Anil Kumar Reddy </author>
      <description>thank you... but i am interested in learning the way to extract a horizontal line by varying theta using hough transform&lt;br&gt;
&quot;Dave Robinson&quot; &amp;lt;dave.robinson@somewhere.biz&amp;gt; wrote in message &amp;lt;gngm1d$1nj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Anil Kumar Reddy &quot; &amp;lt;g_anilkumarreddy@yahoo.co.in&amp;gt; wrote in message &amp;lt;gngj5h$ncf$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Image Analyst&quot; &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;gne6oi$qe7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Anil Kumar Reddy :&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; Detect or display?  Or both?  Which is it?&lt;br&gt;
&amp;gt; &amp;gt; i want to detect and display the line.the line i need to detect is a horizontal line. how can it be done?&lt;br&gt;
&amp;gt; &amp;gt;    thank you&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you know that your line is horizontal, do you actually have to go to the extent of using the Hough transform, which takes a lot of computational horse power? &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; You might find that you can get your result by simply doing a sum in the row direction. Any truely horizontal line will provide a large peak in the sum vector, which will provide information regarding its length (via the peak amplitude), its width (via the width of the peak) and its position (via the position of the peak).&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; It is a limited form of the Radon Transform.&lt;br&gt;
&amp;gt; help sum&lt;br&gt;
&amp;gt; help radon&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Hope that helps &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Dave Robinson</description>
    </item>
    <item>
      <pubDate>Thu, 26 Feb 2009 07:15:08 -0500</pubDate>
      <title>Re: extracting a line from an image using hough transform</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676#630951</link>
      <author>G. B.</author>
      <description>&quot;Anil Kumar Reddy &quot; &amp;lt;g_anilkumarreddy@yahoo.co.in&amp;gt; wrote in message &amp;lt;go58ct$8sq$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; thank you... but i am interested in learning the way to extract a horizontal line by varying theta using hough transform&lt;br&gt;
&amp;gt; &quot;Dave Robinson&quot; &amp;lt;dave.robinson@somewhere.biz&amp;gt; wrote in message &amp;lt;gngm1d$1nj$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &quot;Anil Kumar Reddy &quot; &amp;lt;g_anilkumarreddy@yahoo.co.in&amp;gt; wrote in message &amp;lt;gngj5h$ncf$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &quot;Image Analyst&quot; &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;gne6oi$qe7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Anil Kumar Reddy :&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; &amp;gt; Detect or display?  Or both?  Which is it?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt; i want to detect and display the line.the line i need to detect is a horizontal line. how can it be done?&lt;br&gt;
&amp;gt; &amp;gt; &amp;gt;    thank you&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; If you know that your line is horizontal, do you actually have to go to the extent of using the Hough transform, which takes a lot of computational horse power? &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; You might find that you can get your result by simply doing a sum in the row direction. Any truely horizontal line will provide a large peak in the sum vector, which will provide information regarding its length (via the peak amplitude), its width (via the width of the peak) and its position (via the position of the peak).&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; It is a limited form of the Radon Transform.&lt;br&gt;
&amp;gt; &amp;gt; help sum&lt;br&gt;
&amp;gt; &amp;gt; help radon&lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Hope that helps &lt;br&gt;
&amp;gt; &amp;gt; &lt;br&gt;
&amp;gt; &amp;gt; Dave Robinson&lt;br&gt;
&lt;br&gt;
The Hough matrix contains all the combinations of slope and initial heights, therefore representing all the lines that can exist in your image.&lt;br&gt;
&lt;br&gt;
The equation of a line is:&lt;br&gt;
&lt;br&gt;
y = m*x + b;&lt;br&gt;
&lt;br&gt;
so if you are looking for horizontal lines, you'll have to look at the maximum on the edge of your Hough matrix, where m = theta = 0.&lt;br&gt;
&lt;br&gt;
However, I agree with Dave that using a Hough transform to detect a horizontal line is like using a nuke to kill a mosquito: it will do, but at what cost?</description>
    </item>
    <item>
      <pubDate>Tue, 17 Feb 2009 06:56:01 -0500</pubDate>
      <title>extracting a line from an image using hough transform</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676#628770</link>
      <author>Anil Kumar Reddy </author>
      <description>hello,&lt;br&gt;
&amp;nbsp;&amp;nbsp;i have been using hough transform to detect lines in an image. how could i display the lines based on the angle theta; for example to detect a horizontal line i need to use a theta value of 180; how to do it?&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;thanks in advance</description>
    </item>
    <item>
      <pubDate>Tue, 17 Feb 2009 07:15:11 -0500</pubDate>
      <title>Re: extracting a line from an image using hough transform</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676#628773</link>
      <author>Gavrilo Bozovic</author>
      <description>&quot;Anil Kumar Reddy &quot; &amp;lt;g_anilkumarreddy@yahoo.co.in&amp;gt; wrote in message &amp;lt;gndn21$3lm$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; hello,&lt;br&gt;
&amp;gt;   i have been using hough transform to detect lines in an image. how could i display the lines based on the angle theta; for example to detect a horizontal line i need to use a theta value of 180; how to do it?&lt;br&gt;
&amp;gt;      thanks in advance&lt;br&gt;
&lt;br&gt;
Do you want to detect a particular line or just to represent it?&lt;br&gt;
&lt;br&gt;
If you just want to represent it, it should be straightforward, like&lt;br&gt;
&lt;br&gt;
line([xinit xend],[b b]);&lt;br&gt;
&lt;br&gt;
with b = the height of your line.&lt;br&gt;
&lt;br&gt;
If it doesn't answer your question, please be more precise!</description>
    </item>
    <item>
      <pubDate>Tue, 17 Feb 2009 11:24:02 -0500</pubDate>
      <title>Re: extracting a line from an image using hough transform</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676#628814</link>
      <author>Image Analyst</author>
      <description>Anil Kumar Reddy :&lt;br&gt;
Detect or display?  Or both?  Which is it?</description>
    </item>
    <item>
      <pubDate>Wed, 18 Feb 2009 05:31:01 -0500</pubDate>
      <title>Re: extracting a line from an image using hough transform</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676#629056</link>
      <author>Anil Kumar Reddy </author>
      <description>i want to detect a horizontal line and represent it. i have used the canny edge detection technique in the hough transform&lt;br&gt;
&amp;gt; &amp;gt; hello,&lt;br&gt;
&amp;gt; &amp;gt;   i have been using hough transform to detect lines in an image. how could i display the lines based on the angle theta; for example to detect a horizontal line i need to use a theta value of 180; how to do it?&lt;br&gt;
&amp;gt; &amp;gt;      thanks in advance&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Do you want to detect a particular line or just to represent it?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If you just want to represent it, it should be straightforward, like&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; line([xinit xend],[b b]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; with b = the height of your line.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; If it doesn't answer your question, please be more precise!</description>
    </item>
    <item>
      <pubDate>Wed, 18 Feb 2009 09:08:01 -0500</pubDate>
      <title>Re: extracting a line from an image using hough transform</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676#629091</link>
      <author>Anil Kumar Reddy </author>
      <description>&quot;Image Analyst&quot; &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;gne6oi$qe7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Anil Kumar Reddy :&lt;br&gt;
&amp;gt; Detect or display?  Or both?  Which is it?&lt;br&gt;
i want to detect and display the line.the line i need to detect is a horizontal line. how can it be done?&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;thank you</description>
    </item>
    <item>
      <pubDate>Wed, 18 Feb 2009 09:57:01 -0500</pubDate>
      <title>Re: extracting a line from an image using hough transform</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/244676#629102</link>
      <author>Dave Robinson</author>
      <description>&quot;Anil Kumar Reddy &quot; &amp;lt;g_anilkumarreddy@yahoo.co.in&amp;gt; wrote in message &amp;lt;gngj5h$ncf$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &quot;Image Analyst&quot; &amp;lt;imageanalyst@mailinator.com&amp;gt; wrote in message &amp;lt;gne6oi$qe7$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &amp;gt; Anil Kumar Reddy :&lt;br&gt;
&amp;gt; &amp;gt; Detect or display?  Or both?  Which is it?&lt;br&gt;
&amp;gt; i want to detect and display the line.the line i need to detect is a horizontal line. how can it be done?&lt;br&gt;
&amp;gt;    thank you&lt;br&gt;
&lt;br&gt;
If you know that your line is horizontal, do you actually have to go to the extent of using the Hough transform, which takes a lot of computational horse power? &lt;br&gt;
&lt;br&gt;
You might find that you can get your result by simply doing a sum in the row direction. Any truely horizontal line will provide a large peak in the sum vector, which will provide information regarding its length (via the peak amplitude), its width (via the width of the peak) and its position (via the position of the peak).&lt;br&gt;
&lt;br&gt;
It is a limited form of the Radon Transform.&lt;br&gt;
help sum&lt;br&gt;
help radon&lt;br&gt;
&lt;br&gt;
Hope that helps &lt;br&gt;
&lt;br&gt;
Dave Robinson</description>
    </item>
  </channel>
</rss>

