Skip to main content

ITKPOCUS - an open source library for image processing and AI of point-of-care ultrasound, based on ITK (https://pypi.org/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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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