% -*- 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