Working on Ubunutu (Python 3.6, 3.7, 3.8), Mac (3.6, 3.7, 3.8) and Windows (3.6, 3.7)
Only the below classes have been wrapped:
A simplified usage is shown below. See Testing/test.py for a full example.
import numpy as np;
from sksurgerygoicppython import GoICP, POINT3D, ROTNODE, TRANSNODE;
pcloud = np.loadtxt(filename, skiprows=1);
plist = pcloud.tolist();
p3dlist = ;
for x,y,z in plist:
pt = POINT3D(x,y,z);
return pcloud.shape, p3dlist;
goicp = GoICP();
Nm, a_points = loadPointCloud('./Testing/Data/model_bunny.txt');
Nd, b_points = loadPointCloud('./Testing/Data/data_bunny.txt');
goicp.loadModelAndData(Nm, a_points, Nd, b_points);
print(goicp.optimalRotation()); # A python list of 3x3 is returned with the optimal rotation
print(goicp.optimalTranslation());# A python list of 1x3 is returned with the optimal translation
We welcome contributions to this project. Please use the following workflow.
Raise issue in this project's Github Issue Tracker.
Create a feature branch called <issue-number>-<some-short-description>
replacing <issue-number> with the Github issue number
and <some-short-description> with your description of the thing you are implementing.
Code on that branch.
Push to your remote when ready.
Create pull request.
We will review code, suggest and required changes and merge to master when it is ready.