Skip to content
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

Replace "surface_smooth" by "mirtk smooth-surface" #4

Open
schuhschuh opened this issue Jan 16, 2017 · 0 comments
Open

Replace "surface_smooth" by "mirtk smooth-surface" #4

schuhschuh opened this issue Jan 16, 2017 · 0 comments

Comments

@schuhschuh
Copy link

schuhschuh commented Jan 16, 2017

You can use the smooth-surface command of MIRTK to perform Laplacian smoothing of surface node positions (or scalar data...).

It appears that

os.system("surface_smooth {0} {0} 500 -relaxation 0.01".format(mesh_fit))

can be replaced by

os.system("mirtk smooth-surface {0} {0} -iterations 500 -lambda 0.01 -combinatorial -exclnode".format(mesh_fit))

(or -distance option instead of -combinatorial to use Laplacian weights inversely proportional to the distance of adjacent nodes). The option -inclnode or -exclnode can be used to specify whether the node that is smoothed itself should contribute to the average or not, respectively.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant