Skip to content

How to implement scipy.cKDTree.query_ball_point() using the available methods in pykdtree #70

@Mechazo11

Description

@Mechazo11

Dear authors,

I have been testing pykdtree for some time now and am impressed by its performance for low-dimensional datasets.

However, in the project where I want to include pykdtree, we are needed to search the nearest neighbors of candidate keypoints each of which has a unique radius in which the nearest neighbors must lie.

Previously I was using scipy.cKDTree.query_ball_point() which averaged around 400 - 600ms in execution.

I tried just the .query method on my dataset and saw an impressive average run time of 10ms. However, using a for loop with the .query method is not yielding accurate (or close-enough) results with respect to scipy.cKDTree.query_ball_point(points, radiuses).

My question is, given the suite of methods available in pykdtree, what the steps I need to implement to produce an equivalent function to scipy.cKDTree.query_ball_point(points, radiuses)?

With best,
@Mechazo11

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions