tank analysis with ransac problem

Feel free to ask any question here
Post Reply
sewro
Posts: 3
Joined: Tue Sep 13, 2022 9:42 am

tank analysis with ransac problem

Post by sewro »

Hi, I'm trying to do deformation analysis of a tank, I imported a pts point cloud, created a theoretical cylinder. The 2D map shows maximum values of 0.45m but in the generated dxf files the values go up to -2.71m for example. I set the drawing magnification when generating the dxf to 10. I tried different ways and each time the values are similar. Why is there such a discrepancy between the dxf files and the generated map and scale. I attach a 2D map photo and a screen shot of dxf
Attachments
screenshot.png
screenshot.png (60.15 KiB) Viewed 3886 times
mapa.jpg
mapa.jpg (1.55 MiB) Viewed 3886 times
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: tank analysis with ransac problem

Post by daniel »

Hum, hard to debug like this.

Could you share the data with me? (so that I can recreate the map and export it to DXF). You can send an email to admin@cloudcompare.org
Daniel, CloudCompare admin
sewro
Posts: 3
Joined: Tue Sep 13, 2022 9:42 am

Re: tank analysis with ransac problem

Post by sewro »

Sure, I sent the point cloud via email.
user3
Posts: 9
Joined: Wed May 17, 2023 9:14 am

Re: tank analysis with ransac problem

Post by user3 »

Hello,

I’d like to use RANSAC for outlier removal in a point cloud. The idea is for each random subset of points to calculate the least squared plane and check the whole point cloud for outliers (within the given distance threshold or MAD). This would go iteratively until the max number of iterations are fulfilled. The Automatic RANSAC plug in fits shapes and it’s rather unsuitable for this task. However, the roughness (from Geometric Features) is the distance between the point and the best fitting plane for each point. Is it possible in CC to remove outliers by running best fitting plane on the whole point cloud without shape fitting? Can you please indicate where this is in the code?

Thank you very much in advance.
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: tank analysis with ransac problem

Post by daniel »

This really looks like the Noise filter algorithm (the only difference being that the SOR algorithm will go through all points, one by one, instead of being random).

See https://www.cloudcompare.org/doc/wiki/i ... ise_filter
Daniel, CloudCompare admin
user3
Posts: 9
Joined: Wed May 17, 2023 9:14 am

Re: tank analysis with ransac problem

Post by user3 »

Thanks for the hint! Apparently RANSAC doesn't perform good for outlier removal in 3D point clouds.

Another thing, can a best fitting curve or B-spline (using least squared plane or RANSAC) be calculated in CC?
Attachments
best fitting curve
best fitting curve
Screenshot 2024-03-14 132221.png (5.7 KiB) Viewed 3690 times
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: tank analysis with ransac problem

Post by daniel »

Ah no, that's not possible at the moment.
Daniel, CloudCompare admin
user3
Posts: 9
Joined: Wed May 17, 2023 9:14 am

Re: tank analysis with ransac problem

Post by user3 »

I've coded something, however the cubic, quadriatic and polynomial curve (red) don't follow the object's shape. It's supposed to fit similarly like the green line. Do you maybe have an idea how to approach this?
Attachments
curve-fit.png
curve-fit.png (56.42 KiB) Viewed 3617 times
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: tank analysis with ransac problem

Post by daniel »

Have you tested the 'contour extraction' tool? https://www.cloudcompare.org/doc/wiki/i ... ngle_slice

If properly parametrized, it can extract the 'concave' hull of a point cloud.
Daniel, CloudCompare admin
Post Reply