A package to rate motion artifacts in medical images.
Project description
Installation
pip install tse-motion
CLI
rate-motion <path_to_nifti_file>
gen-motion <path_to_nifti_file> <output_file_name>
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.2.tar.gz
(55.1 MB
view details)
Built Distribution
File details
Details for the file tse_motion-0.2.8.2.tar.gz
.
File metadata
- Download URL: tse_motion-0.2.8.2.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 | ec8ca392a201fce4023151d88b581ca9d0e123dde1e665addcb091b25aa4f339 |
|
MD5 | 447bcc07d14f05f0ff1d2df37dec9b84 |
|
BLAKE2b-256 | b318e628cb3a2e5e1ddfa137043424a1d2b9755ca7eb15afdcae42e8c9d36feb |
File details
Details for the file tse_motion-0.2.8.2-py3-none-any.whl
.
File metadata
- Download URL: tse_motion-0.2.8.2-py3-none-any.whl
- Upload date:
- Size: 55.1 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 | 3dbf1fa86b79103ef2b39b308ecf29bdc06a7943fcf0ebdbf10014db19cbc0eb |
|
MD5 | ded0c8176387335e235aaa0288a9cbc8 |
|
BLAKE2b-256 | b1c564449ddb1b281e82dba4a82e184c69551279d0314c1ce85b88c3c35920f8 |