Skip to main content

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


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.3.tar.gz (55.1 MB view details)

Uploaded Source

Built Distribution

tse_motion-0.2.8.3-py3-none-any.whl (55.1 MB view details)

Uploaded Python 3

File details

Details for the file tse_motion-0.2.8.3.tar.gz.

File metadata

  • Download URL: tse_motion-0.2.8.3.tar.gz
  • Upload date:
  • Size: 55.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for tse_motion-0.2.8.3.tar.gz
Algorithm Hash digest
SHA256 6a3cd8c4236bb9929f7c620ee3468c6c2a3b746ac9f792240e501b0abcb2be2f
MD5 7371f2f2197a9597c73094d57c80050d
BLAKE2b-256 94f45b27ad938fd527295c5306d63c1773bf01e588a0e89a28b302cc466a2585

See more details on using hashes here.

File details

Details for the file tse_motion-0.2.8.3-py3-none-any.whl.

File metadata

  • Download URL: tse_motion-0.2.8.3-py3-none-any.whl
  • Upload date:
  • Size: 55.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for tse_motion-0.2.8.3-py3-none-any.whl
Algorithm Hash digest
SHA256 64e34b1ca52eeac34962d522c5955bc49d76088c52e0fb0d98905d7bf8bf9849
MD5 21f51e6d6365901594cbc5c262bbc357
BLAKE2b-256 bee3ab664b3c02f8330bd919fae555b70f10b38baa781509422456344b9da2cc

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page