pydicom

Read, write, manipulate, and analyze DICOM medical imaging files.

Updated Jan 10, 2026
One-click install
npx skills add https://github.com/robinbarvaag/poynt --skill pydicom-robinbarvaag
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pydicom
Source: https://github.com/robinbarvaag/poynt/tree/main/.github/skills/pydicom
Command: npx skills add https://github.com/robinbarvaag/poynt --skill pydicom-robinbarvaag

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill simplifies the complex task of working with DICOM (Digital Imaging and Communications in Medicine) files, enabling efficient manipulation and analysis of medical imaging data.

Core Features & Use Cases

  • Read/Write DICOM: Load, modify, and save DICOM files with ease.
  • Pixel Data Handling: Extract, process, and visualize image data from medical scans.
  • Metadata Management: Access, modify, and anonymize DICOM tags and headers.
  • Conversion: Convert DICOM images to standard formats like PNG or JPEG.
  • Use Case: A researcher needs to extract patient demographics and image acquisition parameters from a large dataset of CT scans for a study. This Skill can automate the extraction and anonymization of this sensitive metadata.

Quick Start

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

Frequently Asked Questions about pydicom

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

FAQPage Schema
How do I extract and anonymize patient metadata from DICOM files?

To extract and anonymize patient metadata from DICOM files, you can read the files, access specific DICOM tags and headers, modify the sensitive demographic fields, and save the anonymized output for secure medical imaging analysis.

How do I convert DICOM medical images to PNG or JPEG formats?

Converting DICOM medical images to standard formats like PNG or JPEG involves loading the DICOM file, extracting the raw pixel data, and processing the image array using libraries like Pillow to save it as a standard image format.

Can I use Python to process and visualize pixel data from CT scans?

Yes, you can use Python to process and visualize pixel data from CT scans by extracting the pixel arrays with pydicom, manipulating the image data with numpy, and rendering the medical imaging visuals using matplotlib.

Does Python support handling compressed DICOM pixel data for PACS integration?

Python supports handling compressed DICOM pixel data for PACS integration by utilizing specific pixel data decoding dependencies like pylibjpeg, python-gdcm, and pylibjpeg-openjpeg to read and process the medical imaging files.

What is the best way to automate extraction of image acquisition parameters from medical scans?

The best way to automate extraction of image acquisition parameters from medical scans is to script the DICOM file reading process, iterate through the dataset headers, and systematically collect the specific metadata tags for radiology workflow automation.