简体   繁体   中英

SACSegmentation Linux and Windows Different Results

Given identical inputs and identical code, a different plane model is found on Windows compared to Linux using SACSegmentation in PCL. For one example, the identified plane on Linux has a roll angle of ~7 degrees where the Windows plane is ~0 degrees. Consecutive Windows results are identical as well as consecutive Linux results. Could this be related to GCC and Visual Studio using different sizes for types? Or Windows using a better default_random_engine ?

Same calculation on Linux and Windows --> different results

<random> generates same number in Linux, but not in Windows

I know the Windows plane is the better identified plane. How can I best remedy this difference so that the Linux version also finds this same plane?

It's about the random engine. If you only run a few iterations (in relation to your cloud size) it might give unreliable results. You could try to add more plane candidates to your RANSAC engine by the .setMaxIterations( ) method to see if the results get closer to each other.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM