⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 linecoords.m

📁 code for iris recognition
💻 M
字号:
% linecoords - returns the x y coordinates of positions along a line%% Usage: % [x,y] = linecoords(lines, imsize)%% Arguments:%	lines       - an array containing parameters of the line in%                 form%   imsize      - size of the image, needed so that x y coordinates%                 are within the image boundary%% Output:%	x           - x coordinates%	y           - corresponding y coordinates%% Author: % Libor Masek% masekl01@csse.uwa.edu.au% School of Computer Science & Software Engineering% The University of Western Australia% November 2003function [x,y] = linecoords(lines, imsize)xd = [1:imsize(2)];yd = (-lines(3) - lines(1)*xd ) / lines(2);coords = find(yd>imsize(1));yd(coords) = imsize(1);coords = find(yd<1);yd(coords) = 1;x = int32(xd);y = int32(yd);   

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -