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
Metadata
Release files for tse-motion 0.2.8.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tse_motion-0.2.8.6.tar.gz | 55.1 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tse_motion-0.2.8.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 110.1 MB
Release files / tse_motion-0.2.8.6.tar.gz
| Download URL | tse_motion-0.2.8.6.tar.gz |
|---|---|
| Size | 55.1 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d633fcfafa5d7e1a6744792891412dbf329ddb4964bd03e2d0666266e1376147
|
|
BLAKE2b-256 checksum How to use checksums |
2b8b170178287e9321796c02e03054c21e3b86778e8c2736eb15b684d7ae83bd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|
Release files / tse_motion-0.2.8.6-py3-none-any.whl
| Download URL | tse_motion-0.2.8.6-py3-none-any.whl |
|---|---|
| Size | 55.1 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
38c38515ff854419d8bcdb9f1998fe3bfd2304ecbfa274ea85b66ee345219cfa
|
|
BLAKE2b-256 checksum How to use checksums |
8f6119f79400c9579777db3dc5b5330620246b404cc05d981301626386b5900c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|