Name

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);
       xbasc()
       imshow(Img,2);
       [x,y] = follow(Img);
       xbasc()
       xsm = gsm(x,15);
       ysm = gsm(y,15);
       Img2=unfollow(xsm,ysm,size(Img));
       xbasc()

       chdir(initial_dir);
   

Authors

Ricardo Fabbri <ricardofabbri[at]users.sf.net>

Availability

The latest version of SIP can be found at

http://siptoolbox.sf.net

See Also

follow , bwborder , gsm , curvature