DICOM Processing

Read, write, and modify DICOM tags and pixel data using pydicom and DCMTK.

6|2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/aurabx/skills --skill dicom-processing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: DICOM Processing
Source: https://github.com/aurabx/skills/tree/main/skills/dicom-processing
Command: npx skills add https://github.com/aurabx/skills --skill dicom-processing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pydicom, numpy, pillow, pylibjpeg, pylibjpeg-libjpeg, pylibjpeg-openjpeg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill simplifies the complex task of programmatically working with DICOM medical imaging files, enabling efficient data manipulation and analysis.

Core Features & Use Cases

  • Read/Write DICOM: Easily load, modify, and save DICOM datasets using pydicom.
  • Metadata Handling: Access, extract, and manipulate DICOM tags and their values.
  • Pixel Data Operations: Work with image pixel data, including windowing and conversion.
  • Transfer Syntax Management: Handle compressed and uncompressed DICOM data.
  • Use Case: Automatically extract patient names and study dates from a directory of DICOM files, or convert DICOM images to PNG for easier viewing.

Quick Start

Use the DICOM Processing skill to read the DICOM file 'patient_001.dcm' and print the patient's name and study date.

Frequently Asked Questions about DICOM Processing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I read and extract patient metadata from DICOM files using Python?

You can read and extract DICOM metadata using the pydicom library to load datasets and access specific tags like patient names and study dates programmatically. This Skill facilitates reading, modifying, and saving DICOM tags for automated data extraction.

What's the best way to convert DICOM pixel data to PNG for easier viewing?

Converting DICOM to PNG is handled by accessing pixel data with pydicom and processing it using Pillow. This Skill supports pixel data operations, including windowing and conversion, to export medical images into standard viewing formats.

Does pydicom support handling compressed DICOM transfer syntaxes?

Yes, pydicom handles compressed and uncompressed DICOM transfer syntaxes. This Skill utilizes dependencies like pylibjpeg and pylibjpeg-openjpeg to manage various transfer syntaxes for reading and writing medical imaging datasets.

How do I perform bulk operations on a directory of DICOM datasets?

Bulk operations on DICOM datasets are performed by programmatically iterating through files with pydicom to read, modify tags, and save. This Skill addresses the need for automated medical image data processing across multiple files.

Can I use DCMTK alongside Python for medical image manipulation?

Yes, this Skill enables programmatic interaction with DICOM files using both pydicom and DCMTK. It facilitates reading, writing, and modifying DICOM tags, accessing pixel data, and handling transfer syntaxes within your automated workflows.