Name

drawline — Draws line in a binary image

Calling Sequence

imo = drawline(img, points)

Parameters

img
Intensity image
points
n rows x 2 columns vector of n 2D (row,col) coordinates

[ row1 col1; row2 col2; ... ; rowN colN ]

Description

Function drawline is used to draw a digital straight line or polyline into an image.

Examples

       I = zeros(100,100);
       J = drawline(I, [1 1; 20 50; 100 100]);
       xbasc();
       imshow(J,2);
   

Authors

Ricardo Fabbri <ricardofabbri (AT) users DOT sf DOT net>

Availability

The latest version of the Scilab Image Processing toolbox can be found at

http://siptoolbox.sourceforge.net

See Also

mogrify (-draw parameter)