<< dilate SIP - Scilab Image Processing Toolbox edge >>

SIP - Scilab Image Processing Toolbox >> SIP - Scilab Image Processing Toolbox > drawline

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]);
clf;
imshow(J,2);

Authors

Availability

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

http://siptoolbox.sourceforge.net

See Also


<< dilate SIP - Scilab Image Processing Toolbox edge >>