What problem does it solve?
DICOM medical imaging files are difficult to work with directly, so this skill helps you safely read image data and metadata, transform images for analysis or sharing, and remove patient-identifying information.
Core Features & Use Cases
- Read and inspect DICOM metadata: load datasets, access tags/attributes, and extract study/series/pixel properties for downstream processing.
- Extract and manipulate pixel data: handle grayscale, RGB/YBR color spaces, and multi-frame images for visualization or analysis.
- Convert DICOM to common image formats: turn DICOM slices/frames into PNG/JPEG/TIFF using reliable normalization and optional VOI windowing.
- Modify DICOM metadata: update or add elements and write corrected DICOM outputs for research pipelines.
- Anonymize DICOM files (PHI removal): replace patient identifiers and remove common PHI-containing tags to support data sharing and research use cases.
- Handle compressed DICOM: decompress pixel data when needed by installing appropriate handlers for the transfer syntax.
Quick Start
Use the pydicom skill to anonymize the attached DICOM file 'input.dcm' into 'anonymized.dcm' with PHI removed using its bundled anonymization workflow.