Load a 2D point cloud body model (x and y).
[X,Y] = NL_V_LoadBody(P)
File path.
X-coordinate vector.
Y-coordinate vector.
NL_V_LoadBody2D loads the 2D point cloud body model. The dataset is retrieved from the path P (by default /demos/). X and Y provide respectivelly x- and y-cordinates of points cloud of the body contour.
[path]=NL_F_NLPath();//path to NARVAL module path=path+'/demos/';//folder path nl=50; [x,y]=NL_V_LoadBody2D(path);//application of NL_V_LoadBody2D scf(); plot2d(x,y,rect=[0 0 640 480],style=0); l=length(x); gx=mean(x); gy=mean(y); plot(gx,gy,'ko', 'MarkerSize',6,'LineWidth',2); plot(gx,gy,'kx', 'MarkerSize',6,'LineWidth',2); xstring(gx,gy,'G['+string(gx)+','+ string(gy)+']'); | ![]() | ![]() |