Skip to content
Snippets Groups Projects
Commit 44017908 authored by many's avatar many
Browse files

performance before accuracy

parent f9920d1b
No related branches found
No related tags found
No related merge requests found
Pipeline #13745 passed
......@@ -102,7 +102,7 @@ def skeletonline_completion(x_center, y_center, points):
def pointcloud_to_profile(points):
points_2d_closed = np.vstack((points[:, :2], points[:, :2][0]))
tck, u = splprep(points_2d_closed.T, u=None, s=0.0, per=1, k=3)
res = 30000
res = 10000
u_new = np.linspace(u.min(), u.max(), res)
x_new, y_new = splev(u_new, tck, der=0)
points_2d_closed_refined = np.stack([x_new, y_new]).T
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment