All Projects → jryoungw → lightdicom_python

jryoungw / lightdicom_python

Licence: other
Light DICOM package

Programming Languages

python
139335 projects - #7 most used programming language

Labels

Projects that are alternatives of or similar to lightdicom python

mowoli
Mowoli - A Modality Worklist with RESTful HTTP API
Stars: ✭ 17 (+6.25%)
Mutual labels:  dicom
dicom-containers
singularity and Docker containers to easily get started with common dicom tools
Stars: ✭ 18 (+12.5%)
Mutual labels:  dicom
dicognito
A library and command line tool for anonymizing DICOM files
Stars: ✭ 17 (+6.25%)
Mutual labels:  dicom
AlizaMS
DICOM Viewer
Stars: ✭ 144 (+800%)
Mutual labels:  dicom
fo-dicom.Codecs
Cross-platform Dicom native codecs for fo-dicom
Stars: ✭ 41 (+156.25%)
Mutual labels:  dicom
bidskit
Utility functions for working with DICOM and BIDS neuroimaging data
Stars: ✭ 52 (+225%)
Mutual labels:  dicom
monai-deploy
MONAI Deploy aims to become the de-facto standard for developing, packaging, testing, deploying and running medical AI applications in clinical production.
Stars: ✭ 56 (+250%)
Mutual labels:  dicom
dicomifier
A medical image converter
Stars: ✭ 22 (+37.5%)
Mutual labels:  dicom
slicebox
Microservice for safe sharing and easy access to medical images
Stars: ✭ 18 (+12.5%)
Mutual labels:  dicom
DICOM.jl
Julia package for reading and writing DICOM (Digital Imaging and Communications in Medicine) files
Stars: ✭ 45 (+181.25%)
Mutual labels:  dicom
deid
best effort anonymization for medical images using python
Stars: ✭ 108 (+575%)
Mutual labels:  dicom
rt-utils
A minimal Python library to facilitate the creation and manipulation of DICOM RTStructs.
Stars: ✭ 89 (+456.25%)
Mutual labels:  dicom
go-dicom
DICOM parser for golang
Stars: ✭ 51 (+218.75%)
Mutual labels:  dicom
MITK-Diffusion
MITK Diffusion - Official part of the Medical Imaging Interaction Toolkit
Stars: ✭ 47 (+193.75%)
Mutual labels:  dicom
Emory-BMI-GSoC
Emory BMI GSoC Project Ideas
Stars: ✭ 27 (+68.75%)
Mutual labels:  dicom
COVID-CT-MD
A COVID-19 CT Scan Dataset Applicable in Machine Learning and Deep Learning
Stars: ✭ 22 (+37.5%)
Mutual labels:  dicom
contrib-pydicom
contributions to the core pydicom base, including tutorials, extra plugins, etc.
Stars: ✭ 46 (+187.5%)
Mutual labels:  dicom
MRIcro
macOS Xcode GLSL Volume Render for NIfTI, Bio-Rad Pic, NRRD, Philips, ITK MetaImage, AFNI, Freesurfer, DICOM images.
Stars: ✭ 17 (+6.25%)
Mutual labels:  dicom
dicom-standard-chinese
Chinese translation of DICOM standard, DICOM协议中文版
Stars: ✭ 26 (+62.5%)
Mutual labels:  dicom
dicomweb-server
Lightweight DICOMweb Server with CouchDB
Stars: ✭ 74 (+362.5%)
Mutual labels:  dicom

LightDICOM

LightDICOM is a fast as light, light as feather Python3 package for managing DICOM files.
The only 3rd party dependency is numpy, thus fast and light.

Basic Usage

from LightClass import LightDCMClass

lc = LightDCMClass()
lc.path = path_to_dicom
d = lc.get_data('0010,0010') # Read tag (0010, 0010), which is "Patient's Name"
npy = lc.read_pixel() # Read pixel values

Or

from LightClass import LightDCMClass

lc = LightDCMClass(path=path_to_dicom)
d = lc.get_data('0010,0010') # Read tag (0010, 0010), which is "Patient's Name"
npy = lc.read_pixel() # Read pixel values

How to read all headers and their values?

lc = LightDCMClass()
lc.path = path_to_dicom 
# Equivalent code : lc = LightDCMClass(path=path_to_dicom)
all_headers = lc.read_all(with_pixel=True)

In .read_all method, there are two arguments:

  • with_pixel : If True, read header information with pixel values. Else, .read_all will not read pixel values. There will be no significant time difference, yet memory efficiency will be different. False uses less memory. That's the difference.
  • resize_pixel : If True, pixel value will be reshaped according to width (0028,0010) and height (0028,0011) information. I guess that in most situations, setting .resize_pixel to False will not be required.

Dependencies

- Python 3.x
- Numpy

Installation

If numpy is not installed, first install it by pip, conda or other method of your choice.

  • install from source git clone https://github.com/jryoungw/lightdicom
  • pypi, conda, etc. are not yet supported. (WIP)

Notes

This is a prototype version, so do remember that bugs or unexpected behaviors may exist.
Whenever bugs are found, please contact via the aforementioned methods. PRs are welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].