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-0.2.0.tar.gz (39.3 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-0.2.0-py3-none-any.whl (30.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for reva_coregistration-0.2.0.tar.gz
Algorithm Hash digest
SHA256 f1c4278ce35986a27e83ebb9c5c74e3e5bf8d5acba16cc3686bff20cd1df1ce8
MD5 5d77646bc2dc1deb92857029ed220136
BLAKE2b-256 53b5fbe4f057084e62dff8ee5b15ad87e2a5cc27e28801eb3db2a7bc35b4cde3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for reva_coregistration-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 787c41dc56a25257f1be7fe7272fcc92026a44533f85ca34d9110bd1a0409f77
MD5 9ec0bf9de3925770cbeb036ec2cc53ef
BLAKE2b-256 8dbdaceb3beaa5dad54f6bd74d314c67d9b1cba04e5ce8b05900eb0ac85e276d

See more details on using hashes here.

Provenance

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