Skip to main content

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 your PATH, Go-ICP program 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

py_simple_go_icp_interface-0.1.1.tar.gz (297.4 kB view details)

Uploaded Source

Built Distribution

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

py_simple_go_icp_interface-0.1.1-py3-none-any.whl (307.5 kB view details)

Uploaded Python 3

File details

Details for the file py_simple_go_icp_interface-0.1.1.tar.gz.

File metadata

  • Download URL: py_simple_go_icp_interface-0.1.1.tar.gz
  • Upload date:
  • Size: 297.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.3.2 CPython/3.13.12 Windows/11

File hashes

Hashes for py_simple_go_icp_interface-0.1.1.tar.gz
Algorithm Hash digest
SHA256 6b5665fe70f236272721bbedd7b4b707b5fca622c77cde7cb0a8bd6564af8db2
MD5 d9ef2a3c0a8ca7b533bbcf2acf26ab1a
BLAKE2b-256 8e029463fa8dde4d88803fd27d787174428a81d4001fd3948b41e94441640e83

See more details on using hashes here.

File details

Details for the file py_simple_go_icp_interface-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for py_simple_go_icp_interface-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cf26b660db63849e20f0c1eab18f47e9d409f999678201fb12f4f0271771d2ed
MD5 c7edfbd837901ea6ca90ea658e9f9be8
BLAKE2b-256 f91736d265b645069c092454a86e2b6e4569d96ae54c86af177ec7d49530f2bb

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