Skip to main content

Compute the correspondence between points in the two point sets before and after rigid transformation.

Project description

point3d_rigid_match

Compute the correspondence between points in the two point sets before and after rigid transformation.

Installation

pip install point3d_rigid_match

Usage

from point3d_rigid_match import find_correspondence

# Give two matrix of N * 3
# assume that they are generated by rigid transformation
A = [
    [-0.8583011244293051, 1.664188145937392, -5.255867327332927],
    [-0.10348646934862409, 2.087722438630186, -3.5977804293199576],
    [-0.037025558771713755, 1.502559878964906, -5.803026123816429],
    [1.314519244586987, 1.8135837080551638, -4.756535447571685]
]

B = [
    [0.9444699906120909, -0.00025015438771101525, 0.0018484750111346566],
    [-0.22389601437774168, -1.201344263998704, -0.0010553875203044244],
    [0.5505852240909018, 0.9189030480397202, -0.0016416782728876612],
    [-1.2711589253295885, 0.2826915078445261, 0.0008482241211740123]
]

# Output the correspondence between A and B
N = len(A)
corr = find_correspondence(A, B)
for i, j in enumerate(corr):
    print(f"A[{i}] -> B[{j}]")

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

point3d_rigid_match-0.1.0.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

point3d_rigid_match-0.1.0-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file point3d_rigid_match-0.1.0.tar.gz.

File metadata

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

File hashes

Hashes for point3d_rigid_match-0.1.0.tar.gz
Algorithm Hash digest
SHA256 857e02fab2a7120c6741ec5c0ec180e0d914b0b6f77f6912a3b9208f1420b692
MD5 4ddc7ee54c24e4c6d002390fc686ccd9
BLAKE2b-256 45a90c3d3ba60c2d81c212a8fd79b5225467f2f6cee30330156d4b31163935c7

See more details on using hashes here.

File details

Details for the file point3d_rigid_match-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for point3d_rigid_match-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 300703c367da7093f8f53cad60360032b7e9e995102cf12a864c10bd1ac1ecc6
MD5 32936dd19fb39e8eec7892e31d20c28a
BLAKE2b-256 681380f49977fe5f00dc7d1c46e9656e0b93e5f2359db07fb05082f4cebcd263

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