A package to rate motion artifacts in medical images.
Project description
Installation
pip install tse-motion
CLI
rate-motion sub-003_ses_01_acq_hipp_T2w.nii.gz
Input: sub-003_ses-01_acq-hipp_T2w.nii.gz | Motion Rating: 4.0
Python
from tse_rating.utils import rate, segment
img = nib.load('tse.nii.gz').get_fdata()
score = rate_motion_artifact(img)
score, grad_cam = rate_motion_artifact(img, save_gradcam=True)
masks = segment(nib.load('tse.nii.gz')) # returns a [2, W, H, Z] 4-dimensional tensor with the first and the second channel containing the left and the right hippocampus
mask = segment(nib.load('tse.nii.gz').get_fdata()[:,:,10]) # returns a [2, W, H] 3-dimensional tensor with the first and the second channel containing the left and the right hippocampus
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tse_motion-0.2.7.tar.gz
(55.1 MB
view details)
Built Distribution
File details
Details for the file tse_motion-0.2.7.tar.gz
.
File metadata
- Download URL: tse_motion-0.2.7.tar.gz
- Upload date:
- Size: 55.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e58e666e6abed3ea469a9ed91f57d14b4db63f74ed6a07038edf4b07648aeb51 |
|
MD5 | 899e1d3b84baa5f49620ec0e718eb38a |
|
BLAKE2b-256 | e597d76e73edb1a07c789739c10456fd91f9447ff2d09f1f17e544760694559a |
File details
Details for the file tse_motion-0.2.7-py3-none-any.whl
.
File metadata
- Download URL: tse_motion-0.2.7-py3-none-any.whl
- Upload date:
- Size: 55.0 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3e18392fb7943cfc6fdbc53db1421b3fb11a22b16f66cd7a3231dbdc124f6052 |
|
MD5 | 23d0cbe01bdf816d71e2c44b7cd57069 |
|
BLAKE2b-256 | 6b6083a0895dc6799c979e8231954d0b82d3ed25999a076f02cc07f2b3f5b6d7 |