pydicom

Read, write, modify, and anonymize DICOM files with pydicom.

13|3|Updated Jun 10, 2026
One-click install
npx skills add https://github.com/tassiovale/claude-code-kit --skill pydicom-tassiovale
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pydicom
Source: https://github.com/tassiovale/claude-code-kit/tree/main/skills/pydicom
Command: npx skills add https://github.com/tassiovale/claude-code-kit --skill pydicom-tassiovale

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pydicom, 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: Interact with DICOM files to read metadata, extract pixel data, and write back to file.
  • Modify Metadata: Update DICOM metadata fields such as patient names, study dates, and series descriptions.
  • Anonymize DICOM: Remove or replace sensitive patient information for privacy and compliance.
  • Convert DICOM: Convert DICOM files to other image formats like PNG, JPEG, and TIFF.
  • Use Case: For a radiologist, this Skill can help anonymize patient data before sharing images with colleagues or for research purposes.

Quick Start

Use the pydicom skill to read metadata from a 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 anonymize patient data in DICOM files for research sharing?

You can anonymize DICOM files by removing or replacing sensitive patient information fields like names and dates. This ensures privacy and compliance when sharing medical imaging data for research purposes.

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

Yes, you can convert DICOM files to standard image formats like PNG, JPEG, and TIFF. This conversion extracts the pixel data from the medical imaging format, making it accessible for standard image viewing and analysis applications.

How do I modify metadata fields in a DICOM file?

Modifying DICOM metadata involves updating specific data elements such as patient names, study dates, and series descriptions within the file structure. This allows you to correct or supplement existing radiology records directly within healthcare imaging applications.

Do I need pydicom installed to read and write medical imaging files?

Yes, the pydicom library is required to handle the DICOM file format and its associated metadata. It provides the necessary functionality to read, write, and process medical imaging files within your Python environment.

What is the best way to extract pixel data from a DICOM file?

The best way to extract pixel data from a DICOM file is to parse the file structure and isolate the specific data element containing the image pixels. This allows you to access the raw medical imaging data for subsequent processing or format conversion.