1 function [x,y] = snakeinit(delta)
2 %SNAKEINIT Manually initialize a 2-D, closed snake
3 % [x,y] = SNAKEINIT(delta)
5 % delta: interpolation step
7 % Chenyang Xu and Jerry L. Prince, 4/1/95, 6/17/97
8 % Copyright (c) 1995-97 by Chenyang Xu and Jerry L. Prince
9 % Image Analysis and Communications Lab, Johns Hopkins University
17 % Loop, picking up the points
18 disp('Left mouse button picks points.')
19 disp('Right mouse button picks last point.')
23 [s, t, but] = ginput(1);
30 plot([x;x(1,1)],[y;y(1,1)],'r-');
33 % sampling and record number to N