LiangliangNan / PolyFit

Polygonal Surface Reconstruction from Point Clouds
https://3d.bk.tudelft.nl/liangliang/publications/2017/polyfit/polyfit.html
GNU General Public License v3.0
717 stars 121 forks source link

How to change RANSAC parameters CGAL #21

Closed bgpantojar closed 4 years ago

bgpantojar commented 4 years ago

Hello,

I just was wondering how to change the RANSAC parameters in CGAL.

I am using polyfit in its UI and CGAL with the same point cloud and the candidate surfaces are different. I assume that is because of the ransac parameters. For cgal I am using the example template without input planes. The candidate surfaces are the next:

UI interface: Screenshot from 2020-03-02 16-14-12

CGAL Screenshot from 2020-03-03 16-45-44

That is getting me to different final results. With the UI I got something. Screenshot from 2020-03-02 16-37-24

With CGAL nothing.

Thanks!

LiangliangNan commented 4 years ago

I think you need to look at the manual of CGAL: https://doc.cgal.org/5.0/Shape_detection/classCGAL_1_1Shape__detection_1_1Efficient__RANSAC.html

Here you will see the actual parameters you can tune or play with: https://doc.cgal.org/5.0/Shape_detection/structCGAL_1_1Shape__detection_1_1Efficient__RANSAC_1_1Parameters.html

The result was not correct because, apparently, some horizontal planes were not detected.

On Tue, Mar 3, 2020 at 4:55 PM Bryan German Pantoja Rosero < notifications@github.com> wrote:

Hello,

I just was wondering how to change the RANSAC parameters in CGAL.

I am using polyfit in its UI and CGAL with the same point cloud and the candidate surfaces are different. I assume that is because of the ransac parameters. For cgal I am using the example template without input planes. The candidate surfaces are the next:

UI interface: [image: Screenshot from 2020-03-02 16-14-12] https://user-images.githubusercontent.com/35929939/75793206-51011580-5d6f-11ea-92b0-764260bb7152.png

CGAL [image: Screenshot from 2020-03-03 16-45-44] https://user-images.githubusercontent.com/35929939/75793231-5a8a7d80-5d6f-11ea-94fd-f5d4bfdebacb.png

That is getting me to different final results. With the UI I got something. [image: Screenshot from 2020-03-02 16-37-24] https://user-images.githubusercontent.com/35929939/75793307-78f07900-5d6f-11ea-87a5-fdd2e75ddfbb.png

With CGAL nothing.

Thanks!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/LiangliangNan/PolyFit/issues/21?email_source=notifications&email_token=ADWOVCAUKDZM4LIZQM2NAOTRFUR5XA5CNFSM4LANO2SKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4ISCHUOQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADWOVCFREUA3NQMRZ7NQLKLRFUR5XANCNFSM4LANO2SA .