pydicom

Read, write, and manipulate DICOM files with pydicom.

Updated Dec 17, 2025
One-click install
npx skills add https://github.com/robotlearning123/claude-scientific-skills --skill pydicom-robotlearning123
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pydicom
Source: https://github.com/robotlearning123/claude-scientific-skills/tree/main/scientific-skills/pydicom
Command: npx skills add https://github.com/robotlearning123/claude-scientific-skills --skill pydicom-robotlearning123

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the process of working with DICOM files, enabling users to read, write, modify, and process medical imaging data efficiently.

Core Features & Use Cases

  • Read and Write DICOM: Access and manipulate DICOM files, including metadata and pixel data.
  • Anonymize DICOM: Remove sensitive patient information for data sharing and research.
  • Convert DICOM: Convert DICOM files to other image formats.
  • Use Case: A radiologist can use this Skill to read a DICOM file, extract metadata, visualize the image, and anonymize the data for research purposes.

Quick Start

Use the pydicom skill to read the metadata from the attached DICOM file 'patient_scan.dcm'.

Frequently Asked Questions about pydicom

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

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

You can read DICOM files to access and manipulate both metadata and pixel data, allowing you to extract patient information and imaging parameters for medical image analysis.

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

Anonymizing DICOM files involves removing sensitive patient information from the metadata, enabling secure data sharing and research without compromising privacy. This process modifies the file to strip identifiable records.

Can I convert DICOM files to standard image formats like PNG or JPEG?

Yes, you can convert DICOM files to other image formats. By leveraging image processing dependencies like Pillow and Matplotlib, the medical imaging pixel data is exported into standard formats for easier viewing.

Does this approach work with numpy for medical image processing?

Yes, this approach works with numpy for medical image processing. It leverages numpy as a core dependency to handle pixel data arrays, enabling efficient manipulation and visualization of medical imaging scans.

How do I visualize DICOM pixel data using matplotlib?

You visualize DICOM pixel data by reading the file to extract the pixel array, then passing that array to matplotlib to render the medical image, providing a quick visual reference for radiology workflows.