A simple python encapsulation of Go-ICP.
Project description
py_simple_go_icp_interface
A simple python encapsulation of Go-ICP.
[!NOTE]
This project only provides a simple Python interface encapsulation for the C++ project.
For the core algorithm, please refer to: https://github.com/yangjiaolong/Go-ICP
Cython implementation, see: https://github.com/aalavandhaann/go-icp_cython
Installation
[!IMPORTANT]
Make sure you have available
g++(or mingw for windows) on yourPATH,Go-ICPprogram will be compiled at runtime.
pip install py_simple_go_icp_interface
Usage
from py_simple_go_icp_interface import go_icp_match, apply_transform
import numpy as np
reference_points = np.array([
[1, 0, 0],
[0, 1, 0],
[0, 0, 1],
[0, 0, 0]
])
moving_points = np.array([
[ 0.78947212, -1.62329061, 1.90248941],
[ 0.20479484, -0.90372354, 1.52782194],
[ 0.67225195, -1.24123766, 2.81916545],
[ 1.59222483, -1.04341237, 1.7634595 ]
])
# get rotation and transform matrix
r_mat, t_vec = go_icp_match(reference_points, moving_points, random_seed=42)
# move point set
moved_points = apply_transform(moving_points, r_mat, t_vec)
# output moved point set
print(moved_points)
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file py_simple_go_icp_interface-0.1.4.tar.gz.
File metadata
- Download URL: py_simple_go_icp_interface-0.1.4.tar.gz
- Upload date:
- Size: 298.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3206ee44468485d58a40cbd95671a00b5b51bd9dd5f44ac8863a2ecf3dedee5f
|
|
| MD5 |
5f9e9c54d30c8c4ef661d522975dbcca
|
|
| BLAKE2b-256 |
a83759396f2b17dc49214c628445373f0ece3155cd1a382921aa8060e9a64bfc
|
File details
Details for the file py_simple_go_icp_interface-0.1.4-py3-none-any.whl.
File metadata
- Download URL: py_simple_go_icp_interface-0.1.4-py3-none-any.whl
- Upload date:
- Size: 308.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c341ebd1c807abb17ca3e18df10138a3bf8e9169d2bd408e40c06637267f5f17
|
|
| MD5 |
f8e40476ad89f82e4622384d5c67ad37
|
|
| BLAKE2b-256 |
4a673a57620ab951de173bc4f77a31c1f1e2d4804c6fb6e4ab5d18f0cbc648cb
|