Skip to main content

ITKPOCUS - an open source library for image processing and AI of point-of-care ultrasound, based on ITK (https://pypi-hypernode.com/project/itk/)

Project description

ITKPOCUS (ITK Point-of-Care Ultrasound) Python Library

Documentation

https://itkpocus.readthedocs.io/en/latest/

Installation

  1. Install https://www.ffmpeg.org/
  2. Add ffmpeg binary directory to your PATH
    1. Note: errors in this step will result in exceptions from skvideo
  3. Activate your virtual environment
  4. pip install itk-pocus

Usage

The scripts provided convert manufacturer video files to ITK Image objects. They may also remove overlays from the ultrasound image and set the physical dimension of the image by processing the overlay ruler (when applicable).

import itkpocus.clarius as clarius
import matplotlib.pyplot as plt
import itk

img_fp=PATH_TO_FILE
video_fp=PATH_TO_FILE

img, meta = load_and_preprocess_image(img_fp)
plt.imshow(img)
print(img, meta)

vid, vid_meta = load_and_preprocess_video(video_fp)
plt.imshow(itk.array_from_image(vid)[0,:,:]) # plot first frame
print(vid, vid_meta)

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

itk-pocus-0.1rc1.tar.gz (2.1 MB view details)

Uploaded Source

Built Distribution

itk_pocus-0.1rc1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file itk-pocus-0.1rc1.tar.gz.

File metadata

  • Download URL: itk-pocus-0.1rc1.tar.gz
  • Upload date:
  • Size: 2.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for itk-pocus-0.1rc1.tar.gz
Algorithm Hash digest
SHA256 43071bbd983ea12b65a040e04572f26b6af65357770d37b99f9ddd2f18c785d3
MD5 bf8ba2922ca865ef74dd5e1493fa221b
BLAKE2b-256 b13531ebd650553c626e0c6df46956a5a911771ced2f016099bebcb0bb541b0c

See more details on using hashes here.

File details

Details for the file itk_pocus-0.1rc1-py3-none-any.whl.

File metadata

  • Download URL: itk_pocus-0.1rc1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.25.1

File hashes

Hashes for itk_pocus-0.1rc1-py3-none-any.whl
Algorithm Hash digest
SHA256 83c39815da147086ce332691ca2ecac8fac341f43978ddf92b09337bd3febb92
MD5 c837fb0e5e882bcf55118a2e3566e654
BLAKE2b-256 89dca09853dd14a945b6f31b7bfb5cc8bb9f116100ee20fc87702a9992ec9300

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