Subject: CGAL users discussion list
List archive
- From: "Sebastien Loriot (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] Efficient_RANSAC: Plane detection and point indices
- Date: Thu, 25 May 2017 08:45:31 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:5HBUCh2Suqw5AxiAsmDT+DRfVm0co7zxezQtwd8ZseMWL/ad9pjvdHbS+e9qxAeQG96KtbQZ1KKW6/mmAj1fp87Z8TgrS99laVwssYYso0QYGsmLCEn2frbBThcRO4B8bmJj5GyxKkNPGczzNBX4q3y26iMOSF2kbVImbuv6FZTPgMupyuu854PcYxlShDq6fLh+MAi6oR/fu8QSgIZuMKY8xxnUqXdMZ+ha2HlkKFyXkhv+/Mu84IJv/yFNsP896sBMVrn3cKs/QbFEFjoqNHw76tP2vhfZVwuP4XUcUmQSkhVWBgXO8Q/3UJTsvCbkr+RxwCaVM9H4QrAyQjSi8rxkSAT0hycdNj4263/Yh8pth69Guh2hphh/w4nJYIGJMfd1Y63Qcc8GSWdHQ81cUTFKDIGhYIsVF+cPIPhWr4f9qVsJrhWwCwejC+ztxTBUiXH7xrE63uY7HA3awAAtEdADvXLJp9v1LqcSVuW1wbHGwTvecfxZwi3y6JPUchAgv/6MW697f8zWyUk1FgPFiUmQopHhMz2UyOsNtG2b4PR8VeK1i28pqxt+rSSzxscrkInIhocZxl7Z/ih+24Y1Idq4SFR6Yd6jDJtcrSSaN49tT8MtRmFnoic6yrkctZGneygKzY0qyhjCYPKJdIiI5wjsVOeXITpgmH1ld6iwhxKo/Uin0O38Wc+520tJoCpditTAqGwB2hjJ5sWESvZx5Fqt1SiM2gzJ9+1JIlw4mbLZJpMj2LI8i4QfvEXZEiPrlkj7iLWaelsl9+Wu9u/peK/ppoWGOI9xkgz+Mrohmsi4AekgNwgBRWmb+eCl2Lzt5031XKxGjvMrnqTarJzWP8sbpqm+Aw9a1oYs9QyzACuh0NQdhXUHLVRFdwybj4XxJV3CPPT1Ae28jlmsijtn2u7KM777DpnQLXXPjK/tfbNn5E5dzAozw8pf55VRCrwZO/LzXkjxtMbZDh8+Lwy42ePnCNFm24MRXGKAGK6ZMKfIvVCU4eIvJvGAZJUJtzblN/gl+/nugGclll8SZ6ap2YIbZ225HvR9P0qZfGHsgswaHGcRvgs+SfTqh0eYXT5SYXayRaM86SshBIKoF4eQDryq1beO1SP+EpxNbX1dEXiNF23pfsOKQaQiciWXd4VanzYNTqSgRolp8Ra0tQjmg/pII+3R9zECpLzq38Ry/fyS31lm7jhzFcWazyeIS0l7m2oJQ3k926Up8h818UuKzaUt268QLtdU/f4cCgo=
- Organization: GeometryFactory
On 05/24/2017 03:32 PM, Thomas Holzmann wrote:
Hi,The input range might indeed be reordered. Since points are accessed through property maps, you might provide a range of indices while
I'm detecting planes in a point cloud by using RANSAC as described in
the manual at 4.1:
http://doc.cgal.org/latest/Point_set_shape_detection_3/index.html#title4
This works very well.
Next, I want to iterate over all assigned points of each plane as
described in 4.3. This works, but it seems as the input
pointsWithNormals-vector is rearranged, and therefore the retrieved
indices doesn't correspond to the original ordering of the vector.
Is there a way to keep the original ordering of the points? Or, if not,
is it possible to store an additional information (the original ID) for
each pointWithNormal?
Thomas
your points are stored in a vector the algorithm won't touch.
Or you can also provide a range filled with pairs of point and index.
It is the same idea (but in another package) than:
http://doc.cgal.org/latest/Spatial_sorting
/Spatial_sorting_2sp_sort_using_property_map_2_8cpp-example.html
where the input range are pairs.
In:
http://doc.cgal.org/latest/Spatial_sorting/Spatial_sorting_2sp_sort_using_property_map_3_8cpp-example.html
we use a range of indices.
Sebastien.
- [cgal-discuss] Efficient_RANSAC: Plane detection and point indices, Thomas Holzmann, 05/24/2017
- Re: [cgal-discuss] Efficient_RANSAC: Plane detection and point indices, Sebastien Loriot (GeometryFactory), 05/25/2017
Archive powered by MHonArc 2.6.18.