Skip to main content

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

Release files for I2T2 0.1.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for I2T2 0.1.7
File Size Uploaded
I2T2-0.1.7.tar.gz 12.4 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for I2T2 0.1.7
File Interpreter ABI Platform
I2T2-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 38.0 MB

Release files / I2T2-0.1.7.tar.gz

Download URL I2T2-0.1.7.tar.gz
Size 12.4 MB
Tags Source
SHA-256 checksum
How to use checksums
7f3e4dae1bd2e60a3c0811397f0edcaba5cfc5b6da73bfcc5a356981157feb22
BLAKE2b-256 checksum
How to use checksums
db44447e5f7e5aa825b482935f2c4a451c399add382d1844fac90e7c892c8570
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release files / I2T2-0.1.7-py3-none-any.whl

Download URL I2T2-0.1.7-py3-none-any.whl
Size 25.5 MB
Tags Python 3
SHA-256 checksum
How to use checksums
a7ecfae9cbb1ebdbd4ded594da79bcdf471eae49dfc9f0b01aed1af1f1fe2e03
BLAKE2b-256 checksum
How to use checksums
b4e347e244e4ff34983250295ceeba2a5131a31daca1d5fc7a37770731bba1cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200325 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.13

2 release files

0.0.12

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page