Is there a way to Automate the Hausdorff Distance?
A processing system for 3D triangular meshes
Brought to you by:
cignoni,
granzuglia
Calculating the Hausdorff Distance in Meshlab requires a few steps:
Is there a way to optimize it to make the process automatic and allow calculation of a batch of models? Lets say I want to calculate the HD of 100 pairs of meshes.
I know that would require some scripting, but I am seeking some advice on whether that script would be easier to achieve. I can see some problems with the alignment part.
Regards
Hello Diego,
I try to do the same thing as you.
Did you manage to solve your problem?
EDIT: my files are already align, I just need to apply the HD filter and export the two samples as .xyz files.
Thanks in advance for your answer.
Regards
Last edit: Melanie 2015-07-28
Melanie,
I'm going to do some shameless self promotion here and suggest you check out my bash meshlabserver scripting interface on github.
At minimum you will need the file mlx.bsh under main/, and possibly measure.bsh as well. You will also need bash v>=4.2. For Windows install Cygwin; if you're on Linux or OS X you probably already have it.
Here's a sample script that should do what you're asking:
A few notes:
Please let me know if you try it out, and especially if you run into any issues with my code.
Thanks,
Tim