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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tse_motion-0.2.8.5.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.5.tar.gz
Algorithm Hash digest
SHA256 fb02997ff0d702d1113423e6bc5d0e3a1643b39b64a7236b8f21dca675494bce
MD5 4c427545c36a38f2b7fd631ed37b1ec7
BLAKE2b-256 a401f9f2f8637e74d6a33541941af9cb3e994c9f0dfda3f7ac8c532f4e98a1ee

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tse_motion-0.2.8.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4dba30cd7866440a5edce21aecc6ca5c803d6456efeae7e98e028fbbca4d62bb
MD5 8acd9d3ffa9bdc3d8ef13686ea3151ef
BLAKE2b-256 8d71c9eab8f1f923d6e3a490d9a04bf4327bf7eef6a0c909c69305faba941ee4

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