What problem does it solve?
This Skill provides a robust Python interface to read, write, and manipulate DICOM (Digital Imaging and Communications in Medicine) files, enabling the extraction and processing of medical imaging data.
Core Features & Use Cases
- Metadata Extraction: Access patient information, study parameters, and imaging settings from DICOM files.
- Pixel Data Handling: Extract image pixel data as NumPy arrays for analysis, apply windowing (VOI LUT), and convert to standard formats.
- Anonymization: Remove Protected Health Information (PHI) from DICOM files for de-identification.
- DICOM Creation: Generate new DICOM files from NumPy arrays with appropriate metadata.
- Series Processing: Load and stack DICOM series into 3D volumetric arrays.
- Use Case: Analyze CT scan data by loading a series of DICOM files, converting pixel data to Hounsfield Units, and visualizing orthogonal slices.
Quick Start
Use the pydicom-medical-imaging skill to read the DICOM file 'scan.dcm' and print the patient's name and image dimensions.