lsnakes_demo Interactive demo for the Level Set Snakes Model (lsnakes)
lsnakes_demo [-n Niter] [-N Nframes] [-t thre] [-f force] u out
-n Niter : number of iterations between frames, default 1
-N Nframes : number of output frames, default 10
-t thre : threshold to binarize mask images, default 1.0
-f force : force term, default 0.000001
u : input Cimage
out : output Cmovie (optimized contours)
void lsnakes_demo (u , out , Niter , Nframes , thre , force )
Cimage u ;
Cmovie out ;
float *force , *thre ;
int *Niter , *Nframes ;
This module provides a simple interface to the snakes
algorithm [CCCD93], by calling
as many time the module
lsnakes as requested.
It moves the initial snakes (given as polygons) according to the content of an
u, in order to fit the contours of the object enclosed in each polygon.
The output is the object out, a movie of char images.
Each image of this movie represents the original image to which are superimposed
the snakes stretched at the current master iteration of the algorithm:
the first image displays the initial snakes, the second image the snakes after
the first call to
lsnakes, the third one the snakes after the second call
lsnakes, and so on up to Nframes, the number of frames selected by the user.
In addition to this master iteration, you can set several iterations of
lsnakes between two adjacent frames (Niter), using the
At the beginning of this module, the module
readpoly is called and
displays the image. Please select the initial snakes using the mouse (type 'H'
in the window to get an one-line help).
When you terminate your selection by typing 'Q', the computation begins.
At the end of the process, you can display the result using the module
emptypoly, fillpolys, fmask, lsnakes, readpoly.
Last Modification date : Fri Apr 11 09:31:47 2003
Francoise Dibos, Jacques Froment, Kamal Lakhiari