<< thin SIP - Scilab Image Processing Toolbox unwrapl >>

SIP - Scilab Image Processing Toolbox >> SIP - Scilab Image Processing Toolbox > unfollow

unfollow

Converts a parametric contour into a binary image

Calling Sequence

Img = unfollow(x, y, dims)

Parameters

x y
vectors, storing the parametrized contour.
Img
binary 2D array, 1 for object and 0 for background (class double)

Description

Function unfollow e Function unfollow plots a contour from its parametric representation into a binary image. This operation is the reverse of the follow function.

Examples

initial_dir = PWD;
chdir (SIPDIR + 'images');

Img = imread('star.bmp');
xset('window',0);
clf
imshow(Img,2);
[x,y] = follow(Img);
xsm = gsm(x,15);
ysm = gsm(y,15);
Img2=unfollow(xsm,ysm,size(Img));
clf
imshow(Img2,2);

chdir(initial_dir);

Authors

Availability

The latest version of SIP can be found at

http://siptoolbox.sf.net

See Also


<< thin SIP - Scilab Image Processing Toolbox unwrapl >>