Skip to main content

A Rust-based Python library for extracting pointpca2 features from Point Clouds.

Project description

PointPCA2 - Python Lib

A seamless Python integration to the Rust implementation of PointPCA2

This project aims to integrate Python to pointpca2-rs, enabling the use of Python's comprehensive data science tools combined to the performance provided by the Rust implementation of PointPCA2.

Setup

From PyPI

pip install pointpca2
# or
python -m pip install pointpca2

From source

  • Prerequisites

    • rustc == 1.77.2
    • anaconda3 >= 23.7.4
  • Build

# Clone this repository
https://github.com/akaTsunemori/pointpca2-pylib.git

# cd into the project folder
cd pointpca2-pylib

# Setup and activate the conda environment
conda env create -f environment.yml
conda activate pointpca2-pylib

# Compile the project into a python module using maturin
maturin develop -r

Usage

import open3d as o3d
import numpy as np
import pointpca2

# Load both reference and test PCs
PC_REF_PATH = "examples/pcs/amphoriskos_vox10.ply"
pc_ref = o3d.io.read_point_cloud(PC_REF_PATH)
points_a, colors_a = np.asarray(pc_ref.points), np.asarray(pc_ref.colors)
PC_TEST_PATH = "examples/pcs/tmc13_amphoriskos_vox10_dec_geom01_text01_octree-predlift.ply"
pc_test = o3d.io.read_point_cloud(PC_TEST_PATH)
points_b, colors_b = np.asarray(pc_test.points), np.asarray(pc_test.colors)

# Compute the features (predictors) through the pointpca2 function
predictors = pointpca2.compute_pointpca2(
    points_a, colors_a, points_b, colors_b, search_size=81, verbose=True
)
print(*predictors)

Contributing

Feel free to open any kind of issues and contributions related to this Python package. Issues related to the Rust implementation should be open on the pointpca2-rs repository.

Acknowledgments

License

MIT License


GitHub @akaTsunemori

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

pointpca2-0.4.5-cp312-cp312-win_amd64.whl (295.5 kB view details)

Uploaded CPython 3.12Windows x86-64

pointpca2-0.4.5-cp312-cp312-win32.whl (269.1 kB view details)

Uploaded CPython 3.12Windows x86

pointpca2-0.4.5-cp312-cp312-manylinux_2_28_x86_64.whl (463.1 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pointpca2-0.4.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (462.3 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

pointpca2-0.4.5-cp312-cp312-macosx_11_0_arm64.whl (391.9 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pointpca2-0.4.5-cp311-cp311-win_amd64.whl (295.2 kB view details)

Uploaded CPython 3.11Windows x86-64

pointpca2-0.4.5-cp311-cp311-win32.whl (269.3 kB view details)

Uploaded CPython 3.11Windows x86

pointpca2-0.4.5-cp311-cp311-manylinux_2_28_x86_64.whl (463.7 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pointpca2-0.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (463.2 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

pointpca2-0.4.5-cp311-cp311-macosx_11_0_arm64.whl (394.9 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pointpca2-0.4.5-cp310-cp310-win_amd64.whl (294.7 kB view details)

Uploaded CPython 3.10Windows x86-64

pointpca2-0.4.5-cp310-cp310-win32.whl (269.4 kB view details)

Uploaded CPython 3.10Windows x86

pointpca2-0.4.5-cp310-cp310-manylinux_2_28_x86_64.whl (463.7 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pointpca2-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (463.0 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

pointpca2-0.4.5-cp310-cp310-macosx_11_0_arm64.whl (394.8 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

Details for the file pointpca2-0.4.5-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: pointpca2-0.4.5-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 295.5 kB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pointpca2-0.4.5-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 c6f9a51c1bf6a4d521b53b0c527bdba5453a3aa2bf2d5ced930923affcdc60c9
MD5 26f1611ddd9f776fca88d0bf3d63b4c8
BLAKE2b-256 498e2790944dea1333debf72a1bbb8a4564f7acd30d100b005ada12fc27b6a14

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp312-cp312-win32.whl.

File metadata

  • Download URL: pointpca2-0.4.5-cp312-cp312-win32.whl
  • Upload date:
  • Size: 269.1 kB
  • Tags: CPython 3.12, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pointpca2-0.4.5-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f040eee0e0fef249d23f0901e8c0c963dc0a233963689ebaeb24c8890bf35492
MD5 4058076e5c237b2a7e503f01f792e64a
BLAKE2b-256 a05021934c3ae6d30cdd15cc37aeb020b697983a2c81627285989118cf9f58e1

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9edd92dca45618869afd44cdb09da65dae88388714c79dcc331f643197ea3ccb
MD5 ba76fd28ca991e410312897f94e7b6cc
BLAKE2b-256 87ce35f1c4ef5834cad7ba7c5afb1b4c2f3e4e28d1e6831ed762bac051c55c33

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7bf019b2f87994cee1a306b530565ce232dd313b1c9bad676e72f085b3169fea
MD5 83c211369f2580f3ed926e8ca8e041b6
BLAKE2b-256 540aa3e2989d9b54213990553e4bbca406bd976a171030efb34febd2f9c4850f

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 30901ca11725d9198462114b0ad36728160cad6ed77e73d1b1213b48f77b3322
MD5 eceacbf06e5ba3ebda972a8b7e97c82e
BLAKE2b-256 b745de0684279bcf2329b556f841e960d171b4ce8e2bf04f4081be1a972fb253

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: pointpca2-0.4.5-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 295.2 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pointpca2-0.4.5-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 b94f5e31b8046d0e7e24e14dbe232e7b75146b0a0caf1e943f1f70602be185e1
MD5 07076d8e5509add3e2bea5cc45f5b5e7
BLAKE2b-256 2770fc0ec4b912e73bfd2c9f4fcc9428d1c1915bf90f705bc8b2991291089722

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp311-cp311-win32.whl.

File metadata

  • Download URL: pointpca2-0.4.5-cp311-cp311-win32.whl
  • Upload date:
  • Size: 269.3 kB
  • Tags: CPython 3.11, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pointpca2-0.4.5-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 fd7e2e486e4929cc4286d76d9796aba334cfd499820fb5e9eab684e54ecd5619
MD5 2a60d76968ca6b16a6978be8d474b900
BLAKE2b-256 e02d93e40f90b3a3381df66d22879b6dca21946a21f011ad354d916ff338d4eb

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 0c76db19ce18837fa39ace0d86cbb05e1fdd11d1a4faaf0a922cfd92f531a825
MD5 aab4348a4b1717847054dc0b3ae2c1a3
BLAKE2b-256 6d5022e4fbaec65be7886d4f306b04ed5dcda8d021e5d7735465c5d4a21a23b6

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1ca81a861961d259f2cd8c737ad5a80a07c97298c47f1e911bf58e0959f3b9ff
MD5 29919c9e526fe1b8527d715fc81d0934
BLAKE2b-256 91dbf919b5f33f86b62e06b6847f6af44df27438ee013a8a42b51f14113609ec

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4de55cb9a980380a2c054cd5eef3b350a8b07bf3cff5a5c11adcbeddf728d96e
MD5 2d269acda1c0a1f651b4609f0896339d
BLAKE2b-256 fb671444c1f58967c33c57e1189fc0d5dce9c26cc912ae752053aabe5cc44f7e

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp310-cp310-win_amd64.whl.

File metadata

  • Download URL: pointpca2-0.4.5-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 294.7 kB
  • Tags: CPython 3.10, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pointpca2-0.4.5-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 77597b4a219fbdf02f222bbdc4985bc92640b711bdb11065b7e30ad4a456b092
MD5 e911aaa6547892034a89173aa7bc94a0
BLAKE2b-256 22ffdaf54de34453efb5aef6bfb235bdab2d18c65793727db626d652abf20f2e

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp310-cp310-win32.whl.

File metadata

  • Download URL: pointpca2-0.4.5-cp310-cp310-win32.whl
  • Upload date:
  • Size: 269.4 kB
  • Tags: CPython 3.10, Windows x86
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for pointpca2-0.4.5-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 8ce915e6e5dd973fe1b5cf66270c9cde042a51e5ceaa758cab7f35c0aa5dfa87
MD5 2161b550269fbd01719c16222b10cc69
BLAKE2b-256 a7d0869c7334319854cc229d544a94a5fee0c2c970d58b74d4e7bef323ff2c70

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp310-cp310-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3b32ff7c3de5a5ade0ce0e407b725f3d015d5123f339dddafeaad03a6fc480ae
MD5 a9aa67c3003b025d603b99f23a5c2433
BLAKE2b-256 3d4f4912501ed84ea237fcc62d6d3fdad6ffd27886244e89b1d88acd5e9605e0

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7d012091f4637aee3d3748af9a0e97fef67b65906bad0078d74d323b1ed3a845
MD5 e8a3a53ce00809fa53dc30f82d870e87
BLAKE2b-256 207f02a1e04be6978a577bef8e41df44e886a81ee64b95d71b335a9f30662615

See more details on using hashes here.

File details

Details for the file pointpca2-0.4.5-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for pointpca2-0.4.5-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d14a456df6097656ddc559076e87425d087dc105e396c92c1a6c5f41eb810192
MD5 9592d3183bb47b2aaee05a158b88d936
BLAKE2b-256 16f35062eed92d8ef4d17836e7e5562260f0d08918cf7f0b078fb59c9030e853

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