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.8.1.tar.gz
(55.1 MB
view details)
Built Distribution
File details
Details for the file tse_motion-0.2.8.1.tar.gz
.
File metadata
- Download URL: tse_motion-0.2.8.1.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 | 9628c0941550ccfdbab3d4255b50a734a074b9c211e343a2634304c7cca3143d |
|
MD5 | f06718e424e6ee331d012c3316f85dad |
|
BLAKE2b-256 | 704baee1211c5fcd726b06862c8ca030772aae4dd7d46a8798e42f3864e0de5f |
File details
Details for the file tse_motion-0.2.8.1-py3-none-any.whl
.
File metadata
- Download URL: tse_motion-0.2.8.1-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 | 221161e8f09a2597338ad5a7873de1cdb08a2666669ed7a22fcc7a81577b08f7 |
|
MD5 | a953eb0d475dcf0648eb5ed32290c052 |
|
BLAKE2b-256 | 043a22746a5ba087decb311e14b9b3735b77725c1d1cf7cb7887fe913afd1387 |