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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f1c4278ce35986a27e83ebb9c5c74e3e5bf8d5acba16cc3686bff20cd1df1ce8
|
|
| MD5 |
5d77646bc2dc1deb92857029ed220136
|
|
| BLAKE2b-256 |
53b5fbe4f057084e62dff8ee5b15ad87e2a5cc27e28801eb3db2a7bc35b4cde3
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reva_coregistration-0.2.0.tar.gz -
Subject digest:
f1c4278ce35986a27e83ebb9c5c74e3e5bf8d5acba16cc3686bff20cd1df1ce8 - Sigstore transparency entry: 379018191
- Sigstore integration time:
-
Permalink:
Theta-Tech-AI/reva-registration@421fc43eead6103203861afeb00e0b7ceda225ec -
Branch / Tag:
refs/tags/2025-07-28_pypi_10 - Owner: https://github.com/Theta-Tech-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@421fc43eead6103203861afeb00e0b7ceda225ec -
Trigger Event:
release
-
Statement type:
File details
Details for the file reva_coregistration-0.2.0-py3-none-any.whl.
File metadata
- Download URL: reva_coregistration-0.2.0-py3-none-any.whl
- Upload date:
- Size: 30.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
787c41dc56a25257f1be7fe7272fcc92026a44533f85ca34d9110bd1a0409f77
|
|
| MD5 |
9ec0bf9de3925770cbeb036ec2cc53ef
|
|
| BLAKE2b-256 |
8dbdaceb3beaa5dad54f6bd74d314c67d9b1cba04e5ce8b05900eb0ac85e276d
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
reva_coregistration-0.2.0-py3-none-any.whl -
Subject digest:
787c41dc56a25257f1be7fe7272fcc92026a44533f85ca34d9110bd1a0409f77 - Sigstore transparency entry: 379018215
- Sigstore integration time:
-
Permalink:
Theta-Tech-AI/reva-registration@421fc43eead6103203861afeb00e0b7ceda225ec -
Branch / Tag:
refs/tags/2025-07-28_pypi_10 - Owner: https://github.com/Theta-Tech-AI
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish_to_pypi.yml@421fc43eead6103203861afeb00e0b7ceda225ec -
Trigger Event:
release
-
Statement type: