|
|
| File Information |
| Description |
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. |
| MATLAB release |
MATLAB 6.5 (R13)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (8) |
| 23 Jul 2007 |
Olivier Salvado
|
|
|
| 12 Jan 2008 |
ali ali
|
|
|
| 20 Feb 2008 |
Ze Ji
|
|
|
| 04 Jun 2008 |
Shawn L
|
|
|
| 20 Aug 2008 |
Stephen blo
|
|
|
| 05 May 2009 |
B Treeby
|
|
|
| 05 May 2009 |
B Treeby
|
|
|
| 14 Dec 2009 |
Sujeet
|
|
|
| Updates |
| 06 Nov 2007 |
Daniel Drucker spotted a bug.
"Line 62 should read:
for line_number = 1:size(p1,1)
Otherwise, it fails when there is only one point in p1 and p2."
It has now been corrected! |
|
Contact us at files@mathworks.com