📄 houghcircle.m
字号:
% houghcircle - takes an edge map image, and performs the Hough transform% for finding circles in the image.%% Usage: % h = houghcircle(edgeim, rmin, rmax)%% Arguments:% edgeim - the edge map image to be transformed% rmin, rmax - the minimum and maximum radius values% of circles to search for% Output:% h - the Hough transform%% Author: % Libor Masek% masekl01@csse.uwa.edu.au% School of Computer Science & Software Engineering% The University of Western Australia% November 2003function h = houghcircle(edgeim, rmin, rmax)[rows,cols] = size(edgeim);nradii = rmax-rmin+1;h = zeros(rows,cols,nradii);[y,x] = find(edgeim~=0);%for each edge point, draw circles of different radiifor index=1:size(y) cx = x(index); cy = y(index); for n=1:nradii h(:,:,n) = addcircle(h(:,:,n),[cx,cy],n+rmin); end end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -