Open Andreas-W opened 12 months ago
Best check sources for nanoflann to see if non-determinism only affects order of points reported of points to be included are missed and not to be included ones are contained. In case it is just about order either in terms of distance or index or both than i'd suggest to use the distance vector returned (L2 norm - squared distance) and do an index sort on it to get order of points or sort indices returned to get points again in order of indices.
If it is about missing points and falsely included points, than you have to check whether parameters selected for the default tree used by open3D are suitable for your needs, otherwise the your only option is either to directly use nanoflann or switch to an exact knntree library or at least one which allows you to increase number of iterations and tune other tree and search parameters not yet accessible through open3d or even nanoflann api.
Checklist
master
branch).My Question
open3d.geometry.KDTreeFlann produces non-deterministic results for KNN search, also mentioned here:
Originally posted by @reyanshsolis in https://github.com/isl-org/Open3D/issues/2344#issuecomment-1007505205
As I understand o3d uses the nanoflann library. Are there any plans for possible deterministic results in the future or is this entirely up to nanoflann?
kind regards, Andreas