Skip to main content

A Python package for image coregistration and coordinate transformation

Project description

Reva Coregistration

A Python package for image coregistration and coordinate transformation, specifically designed for medical imaging applications.

Features

  • Image Coregistration: Align images using landmark-based transformations
  • Coordinate Transformation: Convert coordinates between different image spaces
  • Non-linear Warping: Apply advanced warping techniques for precise alignment
  • Slice Management: Handle multi-slice image data
  • Tile Processing: Efficient processing of large images using tiling

Installation

pip install reva-coregistration

Quick Start

from reva_coregistration import get_associated_coordinates

# Define landmarks for coregistration
landmarks = [
    {"target": {"x": 100, "y": 200}, "source": {"x": 150, "y": 250}},
    {"target": {"x": 300, "y": 400}, "source": {"x": 350, "y": 450}},
    # ... more landmark pairs
]

# Get associated coordinates
coordinates = get_associated_coordinates(
    x_percentage=0.5,
    y_percentage=0.3,
    source_image_width=1024,
    source_image_height=768,
    source_is_photograph=True,
    target_image_width=2048,
    target_image_height=1536,
    apply_nonlinear_warping=True,
    landmarks=landmarks
)

print(coordinates)

Documentation

For detailed documentation, please visit the project repository.

Development

To set up the development environment:

git clone https://github.com/yourusername/reva-coregistration.git
cd reva-coregistration
pip install -e ".[dev]"

Run tests:

pytest

License

This project is licensed under the MIT License - see the LICENSE file for details.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

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

reva_coregistration-1.0.1.tar.gz (41.7 kB view details)

Uploaded Source

Built Distribution

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

reva_coregistration-1.0.1-py3-none-any.whl (33.0 kB view details)

Uploaded Python 3

File details

Details for the file reva_coregistration-1.0.1.tar.gz.

File metadata

  • Download URL: reva_coregistration-1.0.1.tar.gz
  • Upload date:
  • Size: 41.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for reva_coregistration-1.0.1.tar.gz
Algorithm Hash digest
SHA256 def261b011302982c55c732450c1224b602241005c93774b7badaae8f8810986
MD5 c75257ce840f205732cd94c678e99cd1
BLAKE2b-256 1d91b421cca2b0027bf40cca90bdbe784be333f6b55161be3fab63212a3b8a27

See more details on using hashes here.

Provenance

The following attestation bundles were made for reva_coregistration-1.0.1.tar.gz:

Publisher: publish_to_pypi.yml on Theta-Tech-AI/reva-registration

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file reva_coregistration-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for reva_coregistration-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ed953d6b2165b4eed057443e96ab9ce40891132a2fc1aed031cd125c42505829
MD5 6b6517fa12a801f9fd0332ae152aa90c
BLAKE2b-256 e6c9684af7e0919b825101027c6db5536e4262eb079e9439c58741bd6360fd37

See more details on using hashes here.

Provenance

The following attestation bundles were made for reva_coregistration-1.0.1-py3-none-any.whl:

Publisher: publish_to_pypi.yml on Theta-Tech-AI/reva-registration

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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