Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: extracting a line from an image using hough transform
Date: Tue, 17 Feb 2009 07:15:11 +0000 (UTC)
Organization: Helbling Technik Bern AG
Lines: 14
Message-ID: <gndo5v$epc$1@fred.mathworks.com>
References: <gndn21$3lm$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-03-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1234854911 15148 172.30.248.38 (17 Feb 2009 07:15:11 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 17 Feb 2009 07:15:11 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1271984
Xref: news.mathworks.com comp.soft-sys.matlab:518754


"Anil Kumar Reddy " <g_anilkumarreddy@yahoo.co.in> wrote in message <gndn21$3lm$1@fred.mathworks.com>...
> hello,
>   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?
>      thanks in advance

Do you want to detect a particular line or just to represent it?

If you just want to represent it, it should be straightforward, like

line([xinit xend],[b b]);

with b = the height of your line.

If it doesn't answer your question, please be more precise!