Home > freetb4matlab > image > hough_circle.m

hough_circle

PURPOSE ^

% Perform the Hough transform for circles with radius @var{r} on the

SYNOPSIS ^

function accum = hough_circle(bw, r)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} @var{accum}= hough_circle (@var{bw}, @var{r})
% Perform the Hough transform for circles with radius @var{r} on the
% black-and-white image @var{bw}.
%
% As an example, the following shows how to compute the Hough transform for circles
% with radius 3 or 7 in the image @var{im}
% @example
% bw = edge(im);
% accum = hough_circle(bw, [3, 7]);
% @end example
% If @var{im} is an NxM image @var{accum} will be an NxMx2 array, where
% @var{accum}(:,:,1) will contain the Hough transform for circles with 
% radius 3, and @var{accum}(:,:,2) for radius 7. To find good circles you
% now need to find local maximas in @var{accum}, which can be a hard problem.
% If you find a local maxima in @var{accum}(row, col, 1) it means that a
% good circle exists with center (row,col) and radius 3.
%
% @seealso{houghtf}
% @end deftypefn

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Fri 22-May-2009 15:13:00 by m2html © 2003