Subject: CGAL users discussion list
List archive
- From: Simon Giraudot <>
- To:
- Subject: Re: [cgal-discuss] About wlop_simplify_and_regularize_point_set()
- Date: Mon, 12 Feb 2018 10:08:57 +0100
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=None ; spf=None
- Ironport-phdr: 9a23:h7L/kh2+RH5YeePRsmDT+DRfVm0co7zxezQtwd8ZseMXKfad9pjvdHbS+e9qxAeQG9mDsrQc06L/iOPJYSQ4+5GPsXQPItRndiQuroEopTEmG9OPEkbhLfTnPGQQFcVGU0J5rTngaRAGUMnxaEfPrXKs8DUcBgvwNRZvJuTyB4Xek9m72/q99pHPfglEniaxba9vJxiqsAvdsdUbj5F/Iagr0BvJpXVIe+VSxWx2IF+Yggjx6MSt8pN96ipco/0u+dJOXqX8ZKQ4UKdXDC86PGAv5c3krgfMQA2S7XYBSGoWkx5IAw/Y7BHmW5r6ryX3uvZh1CScIMb7S60/Vza/4KdxUBLmlTkJNzA5/m/UhMJ/gq1UrxC9qBJw2IPUfIKYOeBicq/Bc94XRWxMVdtRWSxbBYO8apMCAfcAPeZdqIn9oUYFoxq/BQm2Huzv1yJHhnjq3aYn1OkhCgDG3AknH9IIqnjUo9T1NL0IXuCo0abIyinDYuhZ2Tjj74jIdw4uoe2WXbNwf8re01UgFx/CjlWKqY3pJS+a1uMIs2WC6edrSOyhi2kiqw5rozivwN8hio/TiY0O0V/E8Tt2zJwpKt2/TU53ecKrEJRKuCGeLYd2RdkiQ25wtCY11LIGvpu7czYWyJQ9xx/fZeaIfJSU4hLkTuaQIS10i25ieLK6gRu57EuuyvXkW8Wp0ltHrTBJn9fCu3wXyRDe6tWLRuFy80qlwTqDygTe5+9eLUwpiabWJIQtz7AtmpYJrEjPAjL6lUPrh6GMbEok4PKn6+H/b7XmuJCcM4h0hxngPqg0n8y/Bvk0PwoAUmSB/OSzzrzj/UngTLVNk/02jrPVsJfEJcQbvKK5BRFa0po75xa+CTepzsgYkGEaIF9Hex+LlYbkNl/ULPzmDfqznk6gnThvyvzeO73uGJTNLnzNkLf7erZ97lZRyBEyzdBa4JJUDKsNIP3yWk/rrtPYEwI2Mwuow+v8B9VyyIQeWWeRDa+FKqPTsVGI6fgzLOmQY48Vojb8J+I56P7piH81gUUdcrWx3ZsLdHC4GexrLFmWYXX2htcNCHoFvgslTOP2lV2CSiVTam2pX6M84zE7EJipAZ3CRoCrmryB3T20EodYZmBcWRiwFiLjeIyAHvsNcymPOdRJkzoeVLHnRZVy+wupsVrByr9gKKL7+zcRqJ7kyJAh/OzWkhd0+j1uBtmR1H2lQGxzm24UXS441atjplZsjFyE1P4r0LRjCdVP6qYRAU8BPpnGwrkiUoGgakf6Zt6MDW2ebJCjCDA1QMg2xoVXMUlwHNCvkgrS0SOhH7gPhvqAA5lmqvuAjUi0HN50zjP97Idkl0MvGJIdOmChg6Nj7RndDoXVlF+I0a2tcPZEhXOfxCK41WOL+XpgfktwXKHCBy5NPA3Tqo2mvQXHRr6qTLM6Lk1G187ELKZWOIXk
Hello,
In the current implementation of WLOP in CGAL, a new set of points is generated that is not directly relatable to the input point set, so there is no direct way of propagating color information (or texture).
My advise would be to do some postprocessing. You can use a KD tree containing your input point cloud and use each WLOP output point as a query to search for closest points: in that case, you can relate an uncolored WLOP output point to one (or several) input points and propagate (or compute average) colors. You can, for example, use a counting iterator as input to still get access to the point's color from the KD tree, see: https://doc.cgal.org/latest/Spatial_searching/index.html#title12
Best,
--
Simon Giraudot, PhD
R&D Engineer
GeometryFactory - http://geometryfactory.com/
Le 11/02/2018 à 10:04, williamlai3a a écrit :
Hi All,
I have been trying out the function wlop_simplify_and_regularize_point_set()
in CGAL v4.12 master build, trying to simplify and regularize my very dense
scanned point cloud in .las format, where it comes with RGBI property.
The result looks very good, however, I am facing two issues unsolved, and
would like to seek advise:
1. The output of wlop_simplify_and_regularize_point_set() is only a list of
points with only position information. From my understanding on how WLOP
works, my points are not just sampled, but some of them also re-positioned.
Thus, how am I suppose to map back my RGBI from my original point set to the
new WLOP processed point set? Or otherwise, the color info is lost.
2. Instead of color, I might later on want to input a point set with texture
coordinates. Similar with problem 1 above, how am I suppose to retain (or
remap) the texture coordinates to the new WLOP processed point set?
Thank you, and hope I could get some advise here.
William
--
Sent from: http://cgal-discuss.949826.n4.nabble.com/
- [cgal-discuss] About wlop_simplify_and_regularize_point_set(), williamlai3a, 02/11/2018
- Re: [cgal-discuss] About wlop_simplify_and_regularize_point_set(), Simon Giraudot, 02/12/2018
Archive powered by MHonArc 2.6.18.