I am trying to write a script so that I can put my hand on the screen, click a few dots with ginput and create a matlab outline of people's hands using splines. However, I’m completely not sure how you can connect splines to points that arise from your clicks, since they, of course, are described by some kind of parameterization. How can you use the spline command built into matlab when dots should not connect from left to right?
The code that I still have is small, it just creates a window and allows you to click a few dots
FigHandle = figure('Position', [15,15, 1500, 1500]);
rectangle('Position',[0,0,40,40])
daspect([1,1,1])
[x,y] = ginput;
So, I suppose my question is really what to do with x and y so that you can plan them so that they are linked “chronologically”. (And, in the end, connecting the latter to the first)
source
share