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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tse_motion-0.2.8.6.tar.gz
Algorithm Hash digest
SHA256 d633fcfafa5d7e1a6744792891412dbf329ddb4964bd03e2d0666266e1376147
MD5 d21fc3eae2fa61024b48c7a175ccc9e1
BLAKE2b-256 2b8b170178287e9321796c02e03054c21e3b86778e8c2736eb15b684d7ae83bd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tse_motion-0.2.8.6-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.18

File hashes

Hashes for tse_motion-0.2.8.6-py3-none-any.whl
Algorithm Hash digest
SHA256 38c38515ff854419d8bcdb9f1998fe3bfd2304ecbfa274ea85b66ee345219cfa
MD5 89b89c08a0c02b2e66c6b4281f945080
BLAKE2b-256 8f6119f79400c9579777db3dc5b5330620246b404cc05d981301626386b5900c

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