资源简介
matlab开发-drawline。在图像矩阵上绘制线段。
代码片段和文件信息
function [ind label] = drawline(p1p2image_size)
%DRAWLINE Returns the geometric space (matrix indices) occupied by a line segment
%in a MxN matrix. Each line segment is defined by two endpoints.
%
% IND = DRAWLINE(P1 P2 IMAGE_SIZE) returns the matrix indices
% of the line segment with endpoints p1 and p2.
% If both points are out of the image boundary no line is drawn and an error will appear.
% If only one of the endpoints is out of the image boundary a line is still drawn.
%
% ARGUMENT DEscriptION:
% P1 - set of endpoints (Nx2). ([row column; ...])
% P2 - set of endpoints that connect to p1 (Nx2). ([row column; ...])
% IMAGE_SIZE - vector containing image matrix dimensions
%
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 7828 2009-05-19 15:50 drawline.m
文件 1537 2014-02-12 12:29 license.txt
评论
共有 条评论