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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: tse_motion-0.2.8.4.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.4.tar.gz
Algorithm Hash digest
SHA256 7d0ebfad5a0093f0e7e4b0af74d4e8e2d8855c46236c1b1179f16f1042e04d4e
MD5 a3ec757ea28c4c0b0b70e0d1a215afcf
BLAKE2b-256 701a266b0f308561721e94d1be9b1e1495c18eafe8887dbe03ae47d0520336d4

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tse_motion-0.2.8.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 74cb8fb30818e08c2b98b00c7064f5966e4d13eff6b82bb8861bd0eb99846f3c
MD5 17d476eff0c6d5a1c73698457da8ce1e
BLAKE2b-256 2599b6657b76cd83e3c1b6c36ef8cce05292ecfc00f592ce0f57675b8aac7c51

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