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

Uploaded CPython 3.12Windows x86-64

pointpca2-0.5.1-cp312-cp312-win32.whl (251.1 kB view details)

Uploaded CPython 3.12Windows x86

pointpca2-0.5.1-cp312-cp312-manylinux_2_28_x86_64.whl (451.8 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

pointpca2-0.5.1-cp312-cp312-macosx_11_0_arm64.whl (377.3 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

pointpca2-0.5.1-cp311-cp311-win_amd64.whl (271.9 kB view details)

Uploaded CPython 3.11Windows x86-64

pointpca2-0.5.1-cp311-cp311-win32.whl (251.2 kB view details)

Uploaded CPython 3.11Windows x86

pointpca2-0.5.1-cp311-cp311-manylinux_2_28_x86_64.whl (452.8 kB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

pointpca2-0.5.1-cp311-cp311-macosx_11_0_arm64.whl (382.0 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

pointpca2-0.5.1-cp310-cp310-win_amd64.whl (271.8 kB view details)

Uploaded CPython 3.10Windows x86-64

pointpca2-0.5.1-cp310-cp310-win32.whl (251.7 kB view details)

Uploaded CPython 3.10Windows x86

pointpca2-0.5.1-cp310-cp310-manylinux_2_28_x86_64.whl (452.4 kB view details)

Uploaded CPython 3.10manylinux: glibc 2.28+ x86-64

pointpca2-0.5.1-cp310-cp310-macosx_11_0_arm64.whl (382.0 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for pointpca2-0.5.1-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 163d9c9e1e7fcc7980988be2493a2439b882d38e4c2ed31956ca071e94a34479
MD5 76dcbe37f8e22d7ee1729d82aba98e86
BLAKE2b-256 86123399f28ed7a68f44431a5b7f79891d5a5dca4d9633baf443dee5f2ea4b7e

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pointpca2-0.5.1-cp312-cp312-win32.whl
Algorithm Hash digest
SHA256 d5cb4a8b913d42091f043ab0e58f80d3203fca1beac72ed855f7fd7f9ae7290b
MD5 08f29335d285c002a5d0ba19f3a19ecd
BLAKE2b-256 4682c02f978825622b6316e1ee204cf1a53f065a6cee5379b4a154d50dbd7f94

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.5.1-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 c116fc284780221b5ae9bce1a87512dc96048bec9342be42f375853fae68a4a0
MD5 7ca0f94b0fbad1b2020902c3a95ff791
BLAKE2b-256 12d8a3a9670323d13bfed14ffd02979aa0e8009c963d171dc1cbecb81ae0e602

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.5.1-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 822bb8c60bb56d91666bb9464d5f7627308f481dfe4d5ae2f086bef7ad523bba
MD5 397412be6c00fd58aef9e849b308168b
BLAKE2b-256 19ad05e183ea4a21dbfdbced25bc786880dd1dc6c5eb68ee578fa386dc4f445c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pointpca2-0.5.1-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 cd655ef358edccfb027a87e8e97068b8e0b7252f8788c730bece7289af9492df
MD5 32640a3898c4062bc87e1b1341137905
BLAKE2b-256 bfc2a9fec4fde95edf233634cea55989db4254fdc4f85bb35bbca4397b1f798c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pointpca2-0.5.1-cp311-cp311-win32.whl
Algorithm Hash digest
SHA256 62dffcf036520d6eec3c81fa57723f8df41e75a192d9829f7e45f047f187cbc1
MD5 68c11a6ebe6eb1eac82a18e8401d4547
BLAKE2b-256 f095e481907e4ce95ea90f26f1b273d947f02e55ebda62ad666c2cf2c44811f3

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.5.1-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 38fc049ba625213c7bd9c3e6b78fc939dd9f5d7a56326a134aca10e6751f05d4
MD5 4c01b523f1640251d275e85077d5c755
BLAKE2b-256 c61efca93418327bc63c5929b3d65b5f3a90cc1f41eec73a3305aaf5cd554edd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.5.1-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4663ebe28619b5b59e2ff0a767bd6f8861e7b4c25bfc26934f05869321fe40af
MD5 3887a9ae9b66d482d03eb6f3e4699a07
BLAKE2b-256 9a8c4b52d09763e34e155beed55135efc3091308afd736d348429306397bae75

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pointpca2-0.5.1-cp310-cp310-win_amd64.whl
Algorithm Hash digest
SHA256 59acae855999d4fa571b31d6026a846ee957fe4a90eb93599fd993481222e6aa
MD5 f99cda755b6eec1f0e1f9c30640d5b15
BLAKE2b-256 b3d0af441089b6fd9a55da9b76b927e460e90f615bfbca7b7a76945418d0f2d1

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pointpca2-0.5.1-cp310-cp310-win32.whl
Algorithm Hash digest
SHA256 256d127d182fb38d7ab646bb856f832c966c26a063227ef95ed76fd7ea1640a7
MD5 1fa88c46e273dc81ad9dbcf7f320f63c
BLAKE2b-256 5083b26b33dadf94a38fe7f9fa2c9b62531f35505021095d73684debdf6ecf6d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.5.1-cp310-cp310-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 1e276937ae980b946dadd482a249aa5d29d2ce900188a3d6037a16fe5924fb6e
MD5 eb2d5570d413e37b2db9d31d891c27bb
BLAKE2b-256 dbd24599da911179df86370754dd402dc9b458afa285662ca4b56c08bf963bac

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pointpca2-0.5.1-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 e6de5d382ea042816f4d188b301022914a756dd65c5c4d35c28aa590bca0c273
MD5 8ad2b754c76d802ecf49ebad488c7ab5
BLAKE2b-256 c9a635a8681fd7b71d812cbe8920244b7eb1c25fdb79ec84c02080f4851c461a

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