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.0.tar.gz (40.6 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.0-py3-none-any.whl (32.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reva_coregistration-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5a5eda3f7eb4b83b2e2d05db454faf91b9e51e787b0365fbe5ad3d5c7284761b
MD5 9f4b00b65543ce149694202308b492ca
BLAKE2b-256 99670895c8882662bab692b50a63efd8107440b017a47838cf32ad9afe219b02

See more details on using hashes here.

Provenance

The following attestation bundles were made for reva_coregistration-1.0.0.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.0-py3-none-any.whl.

File metadata

File hashes

Hashes for reva_coregistration-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 907a9df25d9b2de17d8d5c785e62e7d74fd28aff22c3461e2f32c612d3ce886f
MD5 d386b615a15030e7005daf051c8fbbf0
BLAKE2b-256 b942bfb22b7a3d34f7bea66435589b3429098795615a3f11b72bb1072f5a9b97

See more details on using hashes here.

Provenance

The following attestation bundles were made for reva_coregistration-1.0.0-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