M-File Help: iline | View code for iline |
Draw a line in an image
out = iline(im, p1, p2) is a copy of the image im with a single-pixel thick line drawn between the points p1 and p2, each a 2-vector [U,V]. The pixels on the line are set to 1.
out = iline(im, p1, p2, v) as above but the pixels on the line are set to v.
© 1990-2012 Peter Corke.