Medical Imaging Pipelines

Convert DICOM medical images to NIfTI, PNG, JPEG, and HDF5 formats.

6|2|Updated Feb 24, 2026
One-click install
npx skills add https://github.com/aurabx/skills --skill medical-imaging-pipelines
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Medical Imaging Pipelines
Source: https://github.com/aurabx/skills/tree/main/skills/medical-imaging-pipelines
Command: npx skills add https://github.com/aurabx/skills --skill medical-imaging-pipelines

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pydicom, numpy, SimpleITK, nibabel, pillow, scikit-image, scipy, h5py, pandas, tqdm, pylibjpeg, pylibjpeg-libjpeg, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the complex and time-consuming process of preparing medical imaging data for analysis, machine learning, and research.

Core Features & Use Cases

  • Format Conversion: Convert DICOM to NIfTI, PNG, JPEG, or HDF5.
  • Preprocessing: Apply intensity normalization, resampling, cropping, and padding.
  • Metadata Extraction: Generate manifests and statistics from DICOM studies.
  • Use Case: Prepare a large dataset of CT scans for a deep learning model by converting them to NIfTI, normalizing HU values, and resampling to isotropic spacing.

Quick Start

Use the Medical Imaging Pipelines skill to convert all DICOM files in the '/data/dicom_study' directory to PNG images in '/data/png_output'.

Frequently Asked Questions about Medical Imaging Pipelines

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

FAQPage Schema
How do I convert DICOM files to NIfTI for machine learning datasets?

You can convert DICOM files to NIfTI format for machine learning datasets by automating the pipeline with pydicom and nibabel. The process extracts DICOM studies and transforms them into normalized NIfTI volumes ready for model training.

What's the best way to preprocess CT scans for deep learning models?

The best way to preprocess CT scans for deep learning involves applying intensity normalization, resampling to isotropic spacing, and cropping. Automating these steps ensures consistent HU value scaling and uniform voxel dimensions across the dataset.

Can I extract metadata and generate manifests from DICOM studies?

Yes, you can extract metadata and generate manifests from DICOM studies using pydicom and pandas. This process reads DICOM tags and outputs structured statistical summaries, facilitating research data export and automated imaging workflows.

Does this pipeline support exporting medical images to HDF5 and PNG?

Yes, the pipeline supports exporting medical images to HDF5 and PNG formats. It converts DICOM files using SimpleITK, Pillow, and h5py, outputting 2D image slices or multidimensional arrays for analysis and visualization.

Why do I need to resample medical images to isotropic spacing?

Resampling medical images to isotropic spacing is required to standardize voxel dimensions across varying scanner protocols. This ensures uniform spatial resolution, which is critical for consistent feature extraction in deep learning models.

What dependencies are needed to run automated medical imaging workflows?

Dependencies required to run automated medical imaging workflows include pydicom, SimpleITK, nibabel, scipy, and scikit-image. These libraries provide the core functionality for format conversion, intensity normalization, and resampling operations.