DCMTK Howtos

On this page one should find some short guides, how to accomplish specific tasks or use specific features in DCMTK.

Currently, the following Howtos are available:

General

  • DCMTK Primer: Primer on writing code with DCMTK
  • Data Dictionaries: How to use multiple data dictionaries, e.g. for private or additional DICONDE tags
  • Adding a SOP Class: Files to change for adding new (e. g. private) SOP classes to DCMTK

Compiling DCMTK

Logging

Files

  • Load File Meta-Header: How to load the meta-header of a DICOM file (without reading the dataset)
  • Find particular Files: How to find DICOM files of a particular modality (or any other element value) with dcmdump
  • Compare Files: How to compare the content of two DICOM files and show the differences (Unix only)

Data Elements

  • Add Sequence Item: How to add a new item with attributes to sequence (example Reference Image Sequence and corresponding UIDs)
  • Get Sequence Item: How to get information from a sequence item (example Procedure Code Sequence and corresponding Code Meaning)
  • Add Private Data: How to add private data elements to a dataset
  • Remove Private Data: How to remove all private data from a dataset
  • Generate UIDs: How to generate new UIDs for a DICOM SOP Instance
  • Extract Element Values: How to extract element values from dcmdump's textual output
  • XML Tools: How to use DCMTK's XML tools and an XSLT processor to change the patient's name
  • Iterate Dataset: How to iterate over a DICOM dataset

Images and GSPS

Structured Reporting

Network

Mobile Platforms

  • Offline? Android Tutorial: Tutorial explaining how to compile DCMTK for Android platforms (external link, in french language!)
  • Offline? iOS Tutorial: Tutorial explaining how to compile DCMTK for iOS platforms (external link, in french language!)
  • iOS Tutorial: Tutorial explaining how to compile DCMTK for iOS platforms (external link, in Chinese, yes Chinese, language!)

Testing