StrongResearch / dimble

Nimble Digital Imaging IO for Medicine
BSD 3-Clause "New" or "Revised" License
7 stars 2 forks source link

dimble

Nimble Digital Imaging for Medicine

Pipeline

Completed

WIP

All relevant data types including uint16, f16, bf16, complex64 and complex128

Bindings for Python and conversion to NumPy/CuPy/JAX/Torch tensors

Installation

# using ssh
git clone git@github.com:StrongCompute/dimble.git
# OR using https
git clone https://github.com/StrongCompute/dimble.git

cd dimble

make install
make validate_install

Usage

import dimble

# convert to dimble
dimble.dicom_to_dimble('xray.dicom', 'xray.dimble')

# load a dimble file's pixel data
dataset = dimble.load_dimble('xray.dimble', fields=["7FE00010"], device="cpu")

# load a dimble file's pixel data sliced to a 224x224 chunk offset by 100 in each dimension
dataset = dimble.load_dimble('xray.dimble', fields=["7FE00010"], device="cpu", slices=[slice(100,100+224), slice(100,100+224)])

# convert back to dicom
dimble.dimble_to_dicom("xray.dimble", "xray.dicom")

Developing

make install-dev

Testing

make install-dev
make test