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.3.0.tar.gz (39.4 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.3.0-py3-none-any.whl (30.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: reva_coregistration-0.3.0.tar.gz
  • Upload date:
  • Size: 39.4 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.3.0.tar.gz
Algorithm Hash digest
SHA256 52343a554dd3dadac92a8158c97fa0d0fb4f39c1b100aeacea2952cc147e709d
MD5 78a7916a8a06ea3c949658578f4fbf63
BLAKE2b-256 a8d4ff9584b5682852d19e7963fffe5c1d19114407433f3abffff09275da8672

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for reva_coregistration-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 051cd06298ed7d9705c533221a54d4197de38868de10c8fbacedcbf90ac89580
MD5 644912c16f0dec179f71a1c71a3a69ca
BLAKE2b-256 11bcd9ba484e46faafee88e152ec644e59346a0590ec1db0823ad53ec305f3c7

See more details on using hashes here.

Provenance

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