Skip to main content

A package to rate motion artifacts in medical images.

Project description

Installation

pip install tse-motion

CLI

rate-motion sub-003_ses_01_acq_hipp_T2w.nii.gz

Input: sub-003_ses-01_acq-hipp_T2w.nii.gz | Motion Rating: 4.0

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

Uploaded Source

Built Distribution

tse_motion-0.2.8-py3-none-any.whl (55.0 MB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tse_motion-0.2.8.tar.gz
Algorithm Hash digest
SHA256 a084a289a11564f6627c3d19b720c74f0a084c4dbbfbc2479b5691aa892eb104
MD5 7b2691410e7ebf7fc83f02c877cbab60
BLAKE2b-256 d7981304beb5125f425a18494268be87ccf048e1ff5b0ab71f4dee3b107616f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: tse_motion-0.2.8-py3-none-any.whl
  • Upload date:
  • Size: 55.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.9.10

File hashes

Hashes for tse_motion-0.2.8-py3-none-any.whl
Algorithm Hash digest
SHA256 34c7dbd98c14d34795503d51c992df38a9376587506fd5787e9cfa433dfd13fa
MD5 c1a4926c89b7830507e352ead3e56a6b
BLAKE2b-256 b11bf29d4df849e52dd7adef25fcecdefa514893fce5ce83e0a38566fe498ec6

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