pydicom

Read, modify, and anonymize DICOM data using pydicom in Python.

1|Updated Mar 19, 2026
One-click install
npx skills add https://github.com/JosephWoodall/noosphere --skill pydicom-josephwoodall
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pydicom
Source: https://github.com/JosephWoodall/noosphere/tree/main/.agent/skills/pydicom
Command: npx skills add https://github.com/JosephWoodall/noosphere --skill pydicom-josephwoodall

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pydicom, numpy, Pillow, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Pydicom provides a Python-based approach to working with DICOM data, making it easy to read, modify, and anonymize medical images and metadata without vendor-specific tools.

Core Features & Use Cases

  • Read DICOM files and access metadata via Pythonic APIs.
  • Modify tags, anonymize PHI, and convert pixel data to common image formats for research or sharing.
  • Use Case: Integrate DICOM processing into radiology workflows, PACS data preparation, or clinical research pipelines.

Quick Start

Install pydicom and run a quick read on a sample DICOM file to inspect metadata and pixel data.

Frequently Asked Questions about pydicom

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

FAQPage Schema
How do I read and modify DICOM metadata in Python?

You can read and modify DICOM metadata in Python using pydicom to access file datasets via Pythonic APIs. It allows you to manipulate tags and handle pixel data for integration into clinical research pipelines or radiology workflows.

What is the best way to anonymize DICOM files for clinical research?

The best way to anonymize DICOM files for clinical research is using pydicom to modify tags and remove protected health information (PHI). This Python-based approach prepares PACS data for secure sharing without vendor-specific tools.

Can I convert DICOM pixel data to common image formats with Python?

Yes, you can convert DICOM pixel data to common image formats with Python. Using pydicom alongside Pillow and numpy, you can extract pixel arrays and export them for research visualization or sharing.

Do I need numpy and Pillow to process medical imaging data with pydicom?

You need numpy and Pillow as optional dependencies for image conversion and handling compressed medical imaging datasets with pydicom. The core library handles reading and modifying DICOM files, while these dependencies enable pixel array manipulation.

Does pydicom work with compressed DICOM datasets?

Yes, pydicom works with compressed DICOM datasets when optional dependencies like numpy and Pillow are installed. These libraries provide the necessary backend handlers to decode and process compressed pixel data arrays.

Why use Python for DICOM data processing instead of vendor-specific tools?

Using Python for DICOM data processing eliminates the need for vendor-specific tools by providing a programmatic approach to access metadata, manipulate tags, and anonymize medical images. This enables automated radiology workflows and PACS integrations.