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.6-cp312-cp312-win_amd64.whl (292.0 kB view details)

Uploaded CPython 3.12Windows x86-64

pointpca2-0.4.6-cp312-cp312-win32.whl (267.0 kB view details)

Uploaded CPython 3.12Windows x86

pointpca2-0.4.6-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.6-cp312-cp312-macosx_11_0_arm64.whl (391.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pointpca2-0.4.6-cp311-cp311-win_amd64.whl (292.3 kB view details)

Uploaded CPython 3.11Windows x86-64

pointpca2-0.4.6-cp311-cp311-win32.whl (267.2 kB view details)

Uploaded CPython 3.11Windows x86

pointpca2-0.4.6-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.6-cp311-cp311-macosx_11_0_arm64.whl (394.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pointpca2-0.4.6-cp310-cp310-win_amd64.whl (292.1 kB view details)

Uploaded CPython 3.10Windows x86-64

pointpca2-0.4.6-cp310-cp310-win32.whl (267.3 kB view details)

Uploaded CPython 3.10Windows x86

pointpca2-0.4.6-cp310-cp310-manylinux_2_28_x86_64.whl (463.8 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pointpca2-0.4.6-cp310-cp310-macosx_11_0_arm64.whl (394.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

  • Download URL: pointpca2-0.4.6-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 292.0 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.6-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f57060e0e71d3e39c3cbfc291a74c4f0181660023bbeee1557f5ff3e60f1f619
MD5 48b109b75fbdeec0ce4823d710d57d8a
BLAKE2b-256 a0aa48dfd818b140ee2c7893cfd77adc05f667e1566d8dd78dad7a3c30ae3a94

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pointpca2-0.4.6-cp312-cp312-win32.whl
  • Upload date:
  • Size: 267.0 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.6-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 f8b3da0b3a20d964fd47c26b976a44ac88971e522bd47c3bb240aedb13242140
MD5 60b73f4a385cfcc4ac7af989ecc9ba14
BLAKE2b-256 5c14d485cbba50af0414da873bf0657e95e6e45cdc8c4833904662ccacfbaee3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.4.6-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 63279e8546065b652a3f641af7a2bf5560981d064b7839debc1c6021af561e8a
MD5 7642bd297982c8e512bdf821047b5eef
BLAKE2b-256 46c6e2ec5ecd1a3123e9281e803166abc01688018bdf1eed1e791fe756b58653

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.4.6-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f7ec14f0fdd03663e60f66b64d8827c8b579d8f980580b0afb1bf7cf017fa53b
MD5 5dedf53ab229e5c40d5829613fcd7a32
BLAKE2b-256 7c63519ef2df7b39a6308d823cc1ee88c530be0e8f23810ccf80491a62255f99

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pointpca2-0.4.6-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 292.3 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.6-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cae2343eca720a2f287b442d08a53c14b1178791af1694a6f33358fc68fde56b
MD5 896cc44c7a6d3742f1672c4930fa93de
BLAKE2b-256 a28a6902fe315e476d954bffc465250a196f10c600651aab224ad870520924b9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pointpca2-0.4.6-cp311-cp311-win32.whl
  • Upload date:
  • Size: 267.2 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.6-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 b745496419e25241920cbbd9153fec678fa79e17b4896ebfa40709b679a408bf
MD5 59aeb7e2868bd54fdccff1787d3e060b
BLAKE2b-256 1a078bce86c2ab20e12cf9ad7697bbe5b98574b039f4166e29a4f95172bd7c98

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.4.6-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 667bcbfc21b07b01f229d7f1dc077c82d90a3cd89b14389157b2d763986c502f
MD5 5aad41d21dfc7f2dd2f3b1d744b0a393
BLAKE2b-256 9efa92a261002d528b2c066d1b8ec2476da0e4197502ddd21f24fb43329c90e0

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.4.6-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 fd0a0d492b288f81627d613b86d05af8c57db7959ac2da7aca10c6c22a51da95
MD5 0258e442ac3fe5ac75b46abb8ba0e39e
BLAKE2b-256 d68ea97dfa4037da6eca3d843e3337f2b78344f7a0ccd6f12b7d0ab2c5401fa1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pointpca2-0.4.6-cp310-cp310-win_amd64.whl
  • Upload date:
  • Size: 292.1 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.6-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 36ba78f9ea4d942dafdfcf18a43c5a210ff93f052180ac56c43669b65eb41e9b
MD5 b48149b04c0c2f04c5600075add336a7
BLAKE2b-256 f1f63a241929a8d6f01680ff81ca4583be235570b13c1a114491023c1699a202

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pointpca2-0.4.6-cp310-cp310-win32.whl
  • Upload date:
  • Size: 267.3 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.6-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 78344fe2ad41f18eccbfa607dffb9427b306214a205442f0daa2394287065574
MD5 ee95c14b17e8232aa70d0d78dcf320f5
BLAKE2b-256 4f516856c30dc3c031d4d1f7cbefae4b675229d3137d9becc1f3e04b98e524e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.4.6-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 37b17b00afb02be1ebcf7126b92896b32aed6e4fd814d60d20c05517f32dc809
MD5 172a4412c3e260d47022a38422b173df
BLAKE2b-256 57d04999e67270135d2223a6cdc8bee6bdf11e163f9285400008e24476c163e6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.4.6-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bf466157005a014e1eb966e889c7f85d0ab8f6cfc1373a40a4e6cd8c85ff46db
MD5 e60e5c3b66e11794f234a6207c942c1c
BLAKE2b-256 2799963e4d0be812ef8c7ef23e6132af516648d9c6cf598803c8798d29bc4cce

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