houghcircle.m

来自「code for iris recognition」· M 代码 · 共 42 行

M
42
字号
% 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 + =
减小字号Ctrl + -
显示快捷键?