pydicom

Read, write, and modify DICOM datasets including pixel data and metadata tags.

19|2|Updated Jan 31, 2026
One-click install
npx skills add https://github.com/tondevrel/scientific-agent-skills --skill pydicom-tondevrel
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pydicom
Source: https://github.com/tondevrel/scientific-agent-skills/tree/main/skills/pydicom
Command: npx skills add https://github.com/tondevrel/scientific-agent-skills --skill pydicom-tondevrel

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill simplifies the process of reading, modifying, and writing DICOM medical imaging files, making it easier to work with complex medical data.

Core Features & Use Cases

  • Medical Image Processing: Essential for handling CT, MRI, X-ray, and ultrasound data.
  • Metadata Extraction: Easily access patient information, study dates, and other crucial metadata embedded within DICOM files.
  • AI in Radiology: Provides the foundation for building AI models that analyze both the images and their associated clinical data.

Quick Start

Use the pydicom skill to read the DICOM file named 'scan.dcm' and print the patient's name and ID.

Frequently Asked Questions about pydicom

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

FAQPage Schema
How do I read patient metadata from a DICOM file?

Reading patient metadata from a DICOM file involves accessing the dataset to extract embedded information like patient names, IDs, and study dates. This simplifies handling complex clinical data.

Can I use Python to process CT and MRI DICOM images?

You can use Python to process CT and MRI DICOM images by reading and modifying their pixel data and metadata tags. This supports integration with scientific libraries for advanced medical imaging analysis.

What is the best way to extract pixel data from medical imaging files?

Extracting pixel data from medical imaging files is best achieved by using a library that provides programmatic access to DICOM datasets. This enables reading, writing, and modifying image arrays for radiology research.

How do I modify and write DICOM datasets for AI model training?

Modifying and writing DICOM datasets for AI model training requires programmatically manipulating the pixel data and clinical metadata tags. This provides the foundation for building AI models that analyze both images and associated clinical data.

Do I need specific scientific libraries to analyze DICOM medical images?

Analyzing DICOM medical images requires scientific Python libraries to perform advanced processing. The DICOM file access capabilities support integration with these external libraries for complex radiology development and AI training.