Skip to main content

No project description provided

Project description

OxVoxNNS - Oxidised Voxelised Nearest Neighbour Search

A performant (for large numbers of query points) nearest neighbour search implemented in rust

Usage

Basic usage:

from ox_vox_nns.ox_vox_nns import OxVoxNNS

indices, distances = ox_vox_nns.OxVoxNNS(
    search_points,
    max_dist,
    voxel_size,
).find_neighbours(
    query_points,
    num_neighbours
)

TODO

PyPI

  • Investigate building release binaries and pushing with pipx (manual)
  • Investigate automated with cibuildwheel

Performance testing

  • Create a function to generate test data, with the following parameters:
    • Number of search points
    • Range of point coordinate values (probably as a scalar, e.g. 15 => XYZ values in range [0, 15])
    • (Harder, do later) Distribution of points, i.e. some way of making the points less evenly spread (this can severely impact the performance of KDTrees)

Useful function: np.random.random((num_points, 3))

Plotting

  • Compare KDTree implementations - run the same nearest neighbour search using different libraries and plot results (x-axis: num points, y-axis: processing time)
    • scipy.spatial.KDTree (native python)
    • sklearn.neighbours.KDTree (C++)
    • open3d.core.nns.NearestNeighbourSearch (multithreaded C++)
    • OxVoxNNS (rust)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ox_vox_nns-0.1.0.tar.gz (12.8 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

ox_vox_nns-0.1.0-cp312-none-win_amd64.whl (190.9 kB view details)

Uploaded CPython 3.12Windows x86-64

ox_vox_nns-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl (315.5 kB view details)

Uploaded CPython 3.8manylinux: glibc 2.34+ x86-64

File details

Details for the file ox_vox_nns-0.1.0.tar.gz.

File metadata

  • Download URL: ox_vox_nns-0.1.0.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.4.0

File hashes

Hashes for ox_vox_nns-0.1.0.tar.gz
Algorithm Hash digest
SHA256 1d57255595e1dfdfa5e3fff3373c73c790bda4f33b91068d170655e6bbafb18b
MD5 d0a5580f5e830fa360810479c5a39687
BLAKE2b-256 5e79cad8393aedf0ba538d9c4b9a2d5ca199d38b756034e69f766cd9228862d5

See more details on using hashes here.

File details

Details for the file ox_vox_nns-0.1.0-cp312-none-win_amd64.whl.

File metadata

File hashes

Hashes for ox_vox_nns-0.1.0-cp312-none-win_amd64.whl
Algorithm Hash digest
SHA256 05f793ce2814e00a3e01a15fe06288ee3417b9865605896822348379d2629962
MD5 6de113826388e4f4d674c03c2aa7a493
BLAKE2b-256 b427b797ddaa2677ed9656394f0a57c82d0da3cd69584f831e9f766af083bab4

See more details on using hashes here.

File details

Details for the file ox_vox_nns-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for ox_vox_nns-0.1.0-cp38-cp38-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 2d9a8ea078a308dce5e18f3e014e4c7ecda2f2523d025e7fb595379fcc2d2bff
MD5 ebd2e150297f31b490a50f037bba43e6
BLAKE2b-256 56f46a80f879bdeae4cc885445279ce7c3047d3e49623f6ef39e1c394a575431

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page