Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Shape_detection_3 Runtime Complexity

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Shape_detection_3 Runtime Complexity


Chronological Thread 
  • From: Simon Giraudot <>
  • To:
  • Subject: Re: [cgal-discuss] Shape_detection_3 Runtime Complexity
  • Date: Tue, 6 Mar 2018 09:45:54 +0100
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:REzvahM7p6gVWsDANasl6mtUPXoX/o7sNwtQ0KIMzox0I/zyrarrMEGX3/hxlliBBdydt6ofzbKO+4nbGkU4qa6bt34DdJEeHzQksu4x2zIaPcieFEfgJ+TrZSFpVO5LVVti4m3peRMNQJW2aFLduGC94iAPERvjKwV1Ov71GonPhMiryuy+4ZLebxlGiTanfb9+MAi9oBnMuMURnYZsMLs6xAHTontPdeRWxGdoKkyWkh3h+Mq+/4Nt/jpJtf45+MFOTav1f6IjTbxFFzsmKHw65NfqtRbYUwSC4GYXX3gMnRpJBwjF6wz6Xov0vyDnuOdxxDWWMMvrRr0yRD+s7bpkSAXwhSkaKTA5/mHZhM9+gq1Vrx2upQBwzYHPbYGJN/dzZL/Rcc8USGdBWMtaSixPApm7b4sKF+cPIOdYr4z6p1sIsBCwBAisBPn1xT9Vm3D22rE62PkmHAHd3QwgGtUOsHLOoNX6NacSS/q6zLTVwjXEc/Nbwjj955bPchAkv/6MQahwcMrfyUY1CwzFklKQqZblPj+PyusNtG2b4vNmWOmyhWAnrARxrSKuxscqkoTJgJgaxUvf+iV93ok5P8G3SEl+YdK8DJRQuDuVN49sTsMlWWFotz42yrIYtp68eSgF1ognxwTfavyJaYeH/g7jVOGLITZ4nn5qZLW/hxO0/EO9yeP8TtG53VlLoyZfj9XAqnAA2wbc58WJUPdw+kms1S6S2w3X5OxIO104mbbUJpI7zLM8i4AfvVnfEiPrnkj9kbWYeV8++uey7uTqerXmqYGYN49zkgzzM74imsm4AeglMAUDUXKX+eGm273i+U31WbJKjuAqkqXDt5DaO8QbqrS/AwBLzoYv8xe/DzG439QEhXQKI1NIdAiag4T1O1zCOv/1APmlj1monjpn3/XGMafgApXJIHjDirDhfbNl5k5HyQozyNdf55ROBrEOIfLzQFX+tMHFAR8+Lwy52OnnB8t61oMbR22PHrWZMaPcsVCS+u0vP+6MZJUVuTrnN/cl4PvugWcjmVABZampwYcXaHegE/t6LEWWe37sjs4cHmcLpQoxUPHqiEaZUTNIfHazX6c85ikhB468DIfDQJqtgL2b0yuhEJ1WfDMONlfZGnjhc8CIWuwHdTmJCs5niD0NE7a7GKE70hT7jw7/zLwvAevO8zAUso6rgMN04urV0x4z7zVpA8OB+26ASGR5gnkZSTY9wKdlsAp2zVLVgvswuOBRCdEGv6ABaQw9L5OJl7UrWeC3YRrIe5KycHjjR9ynBT8rSddrmo0BbkF4Fsm4nx7K1DatGa5TnLuOVsRtrvDsmkPpLsM48E7okbE7hgN/EMRCMmirmrRu+QHYG4nTggOSkKP4Lf1Bjh6Iz3+KyC+1hG8dUAN0Vv+bDy5ZY0yP8o+/40rDS/qpFKhhNRVBj8iPNvkSZw==

Hello,

Region Growing can be quite long as it implies neighbor queries on pretty much all data points: if the cluster_epsilon parameter is very large, then these neighbor queries can take a very long time. But 5 days still seem like a crazy runtime to me: are you sure you are compiling in Release mode? CGAL can be very slow without the compiler optimizations.

Apart from that, I would strongly advise tuning the parameters by hand, especially cluster_epsilon. You can maybe use a factor of either:
- the average spacing: https://doc.cgal.org/latest/Point_set_processing_3/group__PkgPointSetProcessingAlgorithms.html#gae7d0d1063bcebb7f8a1b0f90597c423b
- the global scale: https://doc.cgal.org/latest/Point_set_processing_3/group__PkgPointSetProcessingAlgorithms.html#gafbe157053a3e1c4f545a99dc55a425cb

Also, I would make some trials on a small subset first (and check if the output is what you expect) to avoid wasting hours or computation.

Note that in the most recent version of CGAL (4.12 beta), a callback mechanism was introduced in Region Growing so that the user can know the advancement of the algorithm while it's running: https://www.cgal.org/2018/02/27/cgal412-beta1/

Best,

--
Simon Giraudot, PhD
R&D Engineer
GeometryFactory - http://geometryfactory.com/


Le 06/03/2018 à 08:03, williamlai3a a écrit :
Hi all,

I am running Region_growing to detect only plane on a 3.7 Million point
cloud.
I just call using .detect() so it uses the default parameters.

The detection function has been running for 5 days on single CPU and never
ending.
(I dunno how to make it utilize my CPU resource as it does not have
concurrent flag)

Are there any possibilities that the .detect() function comes to a dead
loop?
Or it is just taking very long time to end?
Would that be parameters problem? like min_points?

Any ways to make the algo run faster?

Thank you very much.



--
Sent from: http://cgal-discuss.949826.n4.nabble.com/





Archive powered by MHonArc 2.6.18.

Top of Page