-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resulting points are not ordered #10
Comments
Correct on both accounts: the SWC format demands ordered node IDs.
The mesh contraction has several stop conditions. Most are exposed to the user (e.g. |
Thanks for your answer. I realized a bit late that the output is branched despite my input being very tubular. I have managed to get the output I want by reconstructing the graph from the swc output (not the graph output directly since I was interested in the postprocessing steps that used swc). I computed the longest paths, reconnected them based on distance and I think my centerlines are now OK. BTW, I had to use this: try:
swc = skeletor.postprocessing.recenter_vertices(swc, mesh, copy=False)
except ValueError: # happens when there is no need to recenter vertices
pass because |
Just a note that with skeleton Also: as part of the next release, |
First, thanks for sharing your code, it's great.
Now my issue: are SWC points supposed to be ordered? Using my data they definitely aren't, and
node_id
s do not start at 1. Besides that, results look great so I am wondering what I am doing wrong.This warning:
Total face area increased from last iteration. Contraction stopped prematurely after 30 iterations at epsilon 9.6e-06.
is displayed during the contraction phase but the contracted mesh looks OK anyway. Any idea?The text was updated successfully, but these errors were encountered: