Skip to main content

This code provides functionality for registering a fixed and moving image based on the Dicom Registration file

Installation guide

pip install RegisteringImages

Highly recommend to also have DicomRTTool installed

pip install DicomRTTool

Example:

from DicomRTTool import DicomReaderWriter
from RegisterImages.WithDicomReg import register_images_with_dicom_reg, pydicom, sitk

fixed_reader = DicomReaderWriter()
moving_reader = DicomReaderWriter()

registration_file = 'some_path_to_registration'
dicom_registration = pydicom.read_file(registration_file)

fixed_path = 'some_path_to_fixed_image'
moving_path = 'some_path_to_moving_image'

fixed_reader.down_folder(primary_path)
moving_reader.down_folder(secondary_path)
fixed_image = sitk.Cast(primary_reader.dicom_handle, sitk.sitkFloat32)
moving_image = sitk.Cast(secondary_reader.dicom_handle, sitk.sitkFloat32)

resampled_moving = register_images_with_reg(fixed_image=fixed_image, moving_image=moving_image, dicom_registration=dicom_registration)

Metadata

Release files for RegisteringImages 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for RegisteringImages 0.1.3
File Size Uploaded Provenance
RegisteringImages-0.1.3.tar.gz 3.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for RegisteringImages 0.1.3
File Interpreter ABI Platform
RegisteringImages-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 18.6 kB

Release files / RegisteringImages-0.1.3.tar.gz

Download URL RegisteringImages-0.1.3.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
8bb622caf69d5749dc30680618abbdfd3348ee780e9a1fe7a182747d95dc482e
BLAKE2b-256 checksum
How to use checksums
cba602043761cec8fd7aba9627a83c2bb0eb1b4bb431315c7361a895bc7b98f8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.0

Release files / RegisteringImages-0.1.3-py3-none-any.whl

Download URL RegisteringImages-0.1.3-py3-none-any.whl
Size 15.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8ad20b80c5ef26053d052e877c8667e45d8299bc22d5e2f96ddc93a82341bac3
BLAKE2b-256 checksum
How to use checksums
b4f109f4eccec7193f558a1cf39037e8818ee881888d483bcace135a6f92a9ec
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.0

Security for RegisteringImages 0.1.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page