資源簡介
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
評論
共有 條評論