How to extract all Hausdorff distance data? #34
-
HI, I am using Ubuntu for the Meshlab. I also tried to open .ply file by using txt reader, but it is mojibake. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 4 replies
-
Here i attached my code:
output:
Thanks |
Beta Was this translation helpful? Give feedback.
-
At the moment it is not possible to do perform the operation you need neither on meshlab nor on pymeshlab. This feature will be available in the future. |
Beta Was this translation helpful? Give feedback.
-
Actually you can. :) You have to enable the "save samples" option in the filter and two point clouds will be created. They will be exactly of the same size and they contain the points sampled on the first surface and the corresponding closest point on the other surface, with quality storing the distance, so just save them and you have the full info. |
Beta Was this translation helpful? Give feedback.
-
Thanks Alemuntoni. |
Beta Was this translation helpful? Give feedback.
-
Thanks Cignoni, I have seen this in the List of Filters and I tried |
Beta Was this translation helpful? Give feedback.
-
Ok, I did not know that in the quality was stored the distance :) In PyMeshLab, the MeshSet status it's actualy a "MeshLab session". |
Beta Was this translation helpful? Give feedback.
-
(BTW, I am moving this issue in the pymeshlab repo) |
Beta Was this translation helpful? Give feedback.
-
I apologize if I'm getting this wrong, but this discussion is a little confusing to me, i.e. @Sukhe1993 wrote:
If I have properly understood the Metro article by Dr. @cignoni, the values mapped in the user interface are the approximation errors, while the (asymmetric or directed) Hausdorff distance is the maximum given in the output result table. So you don't have many HD values for a single two-mesh comparison, but just one and only the asymmetric one. Again, I apologize if I'm getting this all wrong. Thanks! |
Beta Was this translation helpful? Give feedback.
Ok, I did not know that in the quality was stored the distance :)
In PyMeshLab, the MeshSet status it's actualy a "MeshLab session".
If in the MeshSet you have two meshes, the filter
hausdorff_distance
withsavesample = True
(be careful here: in python booleans are with the first capital letter) will create two other meshes with id 2 (Hausdorff Closest Points) and 3 (Hausdorff Sample Points). You can then extract the quality which will contain the distance.vq = ms.mesh(2).vertex_quality_matrix()