Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

I2T2

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

I2T2

Suite of useful tools for manipulating medical images.

  • 0.1.7
  • PyPI
  • Socket score

Maintainers
1

Intelligent Imaging Tools and Tasks (I2T2)

Library of useful tools for Medical Imaging Handling

Instructions for installation and usage examples can be found below.

Install

It's highly recommended you install I2T2 and its dependencies in a virtual environment (conda or others), so that you don't interfere with system-wide python packages.

  1. Installing via github download:
git clone https://github.com/UCSF-intelligent-imaging/I2T2/
cd I2T2
conda create -n I2T2 python=3.7
conda activate I2T2
pip install nbdev jupyter
pip install -e .
conda install -c conda-forge gdcm
  1. Installing via pip (latest stable version)
conda create -n I2T2 python=3.7
conda activate I2T2
pip install nbdev jupyter
pip install I2T2
conda install -c conda-forge gdcm

Test your installation

conda activate I2T2
python
>>> import I2T2

NOTE:

I2T2 uses GDCM to uncompress some DICOMs.

Make sure to have GDCM installed in your conda environment via conda install -c conda-forge gdcm

conda activate I2T2
python
>>> import gdcm

Using I2T2

# example usage:
from I2T2.io import *
import matplotlib.pyplot as plt

data_path = '../data/knee/'
try:
    array = load_dcm(path_to_dicom_dir = data_path, sort_by_slice_location=True)
    plt.imshow(array[:,:,0])
    plt.show()
except:
    print('could not load array')    

png

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc