Skip to content

OmarAlkousa/DICOM-Using-Python

Repository files navigation

DICOM-Using-Python

If you are a Biomedical Engineer, an IT Specialist in the healthcare field, or a Healthcare Data Scientist/Analyst, you’ve probably used or at least heard about DICOM because it’s everywhere related to medical imaging systems. DICOM is a set of standards that are created to allow communication across multiple modalities between multiple manufacturers so that all medical machines, that are DICOM-compliant of course, can speak the same language when sending information across a network. All you need is one piece of software, a DICOM reader, to read many medical DICOM images from many different modalities.

For more information about DICOM, refer to this post.

There are a lot of DICOM samples on the internet. And you can use your own DICOM files. I chose a dataset of 99 slices of chest-CT scans for one patient. You can find it on Kaggle. I saved the dataset on my Drive so I can easily have access through GoogleColab.

Dealing with DICOM Using ImageIO Python Package: [TDS] [Code]

Using the ImageIO Python package to read DICOM files, extract metadata and attributes, and plot image slices using interactive slider widgets using Ipywidgets. While doing so, we have to understand some important DICOM attributes such as Pixel Spacing, Shape, Slice Thickness, and Aspect Ratio.

Introducing PyDicom, its Classes, Methods, and Attributes: [TDS] [Code]

If you are a Pythonista and you're working with Medical Data, especially DICOM data, you've probably heard of the great python package PyDicom. You'll learn the basics of this package. We'll discuss PyDicom classes (DataSet, DataElement, Sequence) and some useful methods and attributes that you can apply to PyDicom classes.

From DICOM to CSV File: [TDS] [Code]

DICOM files consider data beyond pixel data and store it as a DICOM header. Such data are the Patient's age and weight, Modality, Image Dimension, and so on. In this post, we will use the PyDicom package to build a Python function that can extract specific metadata to use in further data analysis work.

SUBSCRIBE on MEDIUM.

Keep in touch: LinkedIn.