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.orgHow to fund new projects:

http://www.octave.org/funding.htmlSubscription information:

http://www.octave.org/archive.html-------------------------------------------------------------