dcm2nii

Convert clinical DICOM data to NIfTI volumes with JSON sidecars.

78|3|Updated Mar 25, 2026
One-click install
npx skills add https://github.com/CUHK-AIM-Group/NeuroClaw --skill dcm2nii
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dcm2nii
Source: https://github.com/CUHK-AIM-Group/NeuroClaw/tree/main/skills/dcm2nii
Command: npx skills add https://github.com/CUHK-AIM-Group/NeuroClaw --skill dcm2nii

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Converting clinical DICOM data into analysis-ready NIfTI volumes with preserved metadata is labor-intensive and error-prone; this skill wraps dcm2niix to automate the process and generate JSON sidecars.

Core Features & Use Cases

  • High-fidelity DICOM→NIfTI conversion with JSON sidecars (and orientation/voxel preservation).
  • Batch processing across subjects/series with anonymization support.
  • Outputs suitable for FSL, FreeSurfer, SPM, ANTs, nnU-Net, and BIDS-ready pipelines.

Quick Start

Run the dcm2niix-based conversion on the input DICOM directory to generate NIfTI volumes and JSON sidecars in the specified output directory.

Frequently Asked Questions about dcm2nii

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

FAQPage Schema
How do I convert clinical DICOM to NIfTI with preserved metadata?

To convert clinical DICOM to NIfTI with preserved metadata, this Skill wraps dcm2niix to automate the process and generate JSON sidecars. It preserves orientation, voxel spacing, and slice timing while outputting .nii/.nii.gz and .json files.

Can I batch process DICOM to NIfTI conversion across multiple subjects?

Yes, you can batch process DICOM to NIfTI conversion across multiple subjects and series. This Skill supports batch processing and includes anonymization features to handle large neuroimaging datasets efficiently.

Does this DICOM to NIfTI conversion work with BIDS-ready pipelines and tools like FSL or FreeSurfer?

Yes, the DICOM to NIfTI conversion outputs are suitable for FSL, FreeSurfer, SPM, ANTs, nnU-Net, and BIDS-ready pipelines. The generated NIfTI volumes and JSON sidecars integrate directly into these downstream neuroimaging workflows.

What imaging modalities are supported for DICOM to NIfTI conversion?

The DICOM to NIfTI conversion supports MRI, CT, and PET datasets. It applies high-fidelity conversion logic to these modalities, ensuring analysis-ready NIfTI volumes with accurately preserved metadata.

Do I need to install dcm2niix separately to convert DICOM files?

You need a wrapper around dcm2niix to convert DICOM files using this Skill. The Skill automates the dcm2niix conversion process, requiring only an input DICOM directory and a specified output directory for the NIfTI volumes and JSON sidecars.