mdreg
Model-driven motion correction for medical imaging
Documentation: https://openmiblab.github.io/mdreg
Source code: https://github.com/openmiblab/mdreg
Installation
pip install mdreg
Typical usage
import mdreg
# Get some test data (variable flip angle MRI)
data = mdreg.fetch('VFA')
# Configure the signal model fit
fit_image = {
'func': mdreg.fit_spgr_vfa_lin, # VFA signal model
'FA': data['FA'], # Flip angle in degress
'progress_bar': True, # Show a progress bar
}
# Configure the coregistration method
fit_coreg = {
'package': 'elastix',
'spacing': data['spacing'],
}
# Perform the motion correction
coreg, defo, fit, pars = mdreg.fit(
data['array'], # Signal data to correct
fit_image = fit_image, # Signal model fit
fit_coreg = fit_coreg, # Coregistration
verbose = 2, # Show progress update
)
# Visualize the results
anim = mdreg.plot.animation(
coreg,
title = 'Motion corrected VFA',
'interval' : 500, # Time between animation frames in ms
'vmin' : 0, # Minimum value of the colorbar
'vmax' : np.percentile(coreg, 99), # Maximum value of the colorbar
)
License
Released under the Apache 2.0 license:
Copyright (C) 2023-2024 dcmri developers
Metadata
Release files for mdreg 0.5.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mdreg-0.5.4.tar.gz | 1.6 MB | Without provenance | Details for mdreg-0.5.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mdreg-0.5.4-py3-none-any.whl | Python 3 | none | any | Details for mdreg-0.5.4-py3-none-any.whl |
Total release size: 3.2 MB
Release files / mdreg-0.5.4.tar.gz
| Download URL | mdreg-0.5.4.tar.gz |
|---|---|
| Size | 1.6 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a8647a37fa8d2bba091f99663f3dfbe34d84823644cc8ddf3606376da2e3f22c
|
|
BLAKE2b-256 checksum How to use checksums |
488498b5a5e18d42732535be5fb59f5267fd6b17947e84f4b25fddb1b75e7173
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Release files / mdreg-0.5.4-py3-none-any.whl
| Download URL | mdreg-0.5.4-py3-none-any.whl |
|---|---|
| Size | 1.7 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8e47f908122b51c30c863d201d3197ffb60670cf5dc4e1b76ec216f46b2468ea
|
|
BLAKE2b-256 checksum How to use checksums |
baea3fcaf658e19364a1739e9f5dc60976d47e1e39c0bcd2a5e9f94f82ce1790
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.9
|
Security for mdreg 0.5.4
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.