[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Generalized hough transform help
From: |
Stefan van der Walt |
Subject: |
Re: Generalized hough transform help |
Date: |
Wed, 22 Mar 2006 09:10:36 -0600 |
User-agent: |
Mutt/1.5.9i |
On Thu, Mar 16, 2006 at 01:22:59PM +0100, Michael Mazur wrote:
> I'm trying to find some general guidance (or direction towards existing Octave
> code) on writing a circle detection routine using the hough transform. I
> understand that there is linear hough transform code for Octave but I have yet
> to get it to work properly. Thanks,
Here is an example of how to use the straight-line Hough-transform:
I = zeros(100, 150);
I(30,:) = 1; I(:, 65) = 1; I(35:45, 35:50) = 1;
for i = 1:90, I(i,i) = 1;endfor
I = imnoise(I, 'salt & pepper');
imshow(I);
J = houghtf(I); J = J / max(J(:));
imshow(J*1024, hot(255), 'truesize');
Regards
Stéfan
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------