hough 变换检测圆的 matlab 程序
function [y0detect,x0detect,Accumulator] =
houghcircle(Imbinary,r,thresh)
%HOUGHCIRCLE - detects circles with speci*c radius in a binary
image.
%
%Comments
:
% Function uses Standard Hough Transform to detect circles in a
binary image.
% According to the Hough Transform for circles, each pixel in image
space
% corresponds to a circle in Hough space and vise versa.
% upper left corner of image is the origin of coordinate system.
%
%Usage: [y0detect,x0detect,Accumulator] =
houghcircle(Imbinary,r,thresh)
%
%Arguments:
% Imbinary - a binary image. image pixels that have value equal to 1
are
% interested pixels for HOUGHLINE function.
% r - radius of circles.
% thresh - a threshold value that determines the minimum number of
- 1
- 2
- 3
前往页