next up previous contents index
Next: mac_snakes Up: Reference Previous: lsnakes   Contents   Index

lsnakes_demo

$ \bigcirc$Name


lsnakes_demo Interactive demo for the Level Set Snakes Model (lsnakes)




$ \bigcirc$Command Synopsis


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)




$ \bigcirc$Function Summary


void lsnakes_demo (u , out , Niter , Nframes , thre , force )

Cimage u ;

Cmovie out ;

float *force , *thre ;

int *Niter , *Nframes ;




$ \bigcirc$Description


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 image 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 to 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 -n option.

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 cmview.




$ \bigcirc$See Also


emptypoly, fillpolys, fmask, lsnakes, readpoly.




$ \bigcirc$Version 1.0


Last Modification date : Fri Apr 11 09:31:47 2003


$ \bigcirc$Author


Francoise Dibos, Jacques Froment, Kamal Lakhiari






next up previous contents index
Next: mac_snakes Up: Reference Previous: lsnakes   Contents   Index
mw 2004-05-05