For the complete documentation index, see llms.txt. This page is also available as Markdown.

Preparing data in DICOM

To convert annotations of images in IDC, you need to know exactly which images, identified by their DICOM UIDs, each annotation applies to. See Annotating images in IDC.

Choosing a DICOM object

IDC will confirm the right DICOM representation for your data before you start. As a rough guide:

Data
DICOM object
Read more

Segmentations of radiology or pathology images

Segmentation (SEG)

Measurements, qualitative evaluations, point and region annotations

Structured Report (SR)

Large numbers of annotations on slides, such as nuclei outlines

Microscopy Bulk Simple Annotations (ANN)

Whole slide images

Slide Microscopy (SM)

Annotations need standard codes to describe what was annotated. See Coding schemes.

Tools

Open-source tools that can help:

  • dcmqi: command-line tools that need no programming; you describe the content in JSON files. They convert segmentations from research formats such as NIfTI and NRRD into DICOM SEG, and tabular data, such as radiomics features derived from segmentations, into DICOM SR. The tools can be installed with pip install dcmqi (see the PyPI dcmqi package).

  • highdicom: a Python library for creating DICOM SEG, SR, ANN and other objects. Using it means writing Python code.

  • wsidicomizer: converts whole slide images from vendor formats into DICOM SM

  • dciodvfy, part of dicom3tools: checks DICOM files against the standard (can be installed from the PyPI dicom3tools package)

A complete example

rcc-aid-conversion converts the RCC-AID kidney annotations from NIfTI to DICOM SEG, with notes on terminology and on the problems found along the way.

Last updated

Was this helpful?