abner-math / PlaneDetection

Implementation of my article "A Robust Statistics Approach for Plane Detection in Unorganized Point Clouds"
GNU General Public License v3.0
226 stars 24 forks source link

when i click ‘’quick‘’ of ‘’estimate normals‘’,it's too slow #1

Open syly666 opened 4 years ago

syly666 commented 4 years ago

It's a great honor to read your paper. But when i test "Autodetect planes",it shows no plane has been found. I try click ‘’quick‘’ of ‘’estimate normals‘’ ,then "Autodetect planes". It works,but why estimate normals cost so many time(more than 800s). Thank you very much,If you can reply to me. image image

This is my test file. crop.zip

abner-math commented 4 years ago

Hello. It's slow because it's currently doing it sequentially. You can speed up the process by enabling TBB for parallel processing. Refer to the file:

https://github.com/abnerrjo/PlaneDetection/blob/master/PointCloudEditor/normalestimatorworker.cpp

And uncomment the commented lines. Don't forget to link TBB to the project.

https://software.intel.com/en-us/tbb

syly666 commented 4 years ago

Thank you very much,i get it.👍