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.

Notes

See also

bresenham, iprofile, ipaste


Machine Vision Toolbox for MATLAB © 1990-2014 Peter Corke.