Diffusion-weighted DICOM Import (DWIConvert)

Overview

Converts diffusion weighted MR images in DICOM series into NRRD format for analysis in Slicer. This program has been tested on only a limited subset of DTI DICOM formats available from Siemens, GE, and Philips scanners. Work in progress to support DICOM multi-frame data. The program parses DICOM header to extract necessary information about measurement frame, diffusion weighting directions, b-values, etc, and write out a NRRD image. For non-diffusion weighted DICOM images, it loads in an entire DICOM series and writes out a single dicom volume in a .nhdr/.raw pair.

Use cases

  • Loading DICOM diffusion MRI data into Slicer.

  • Conversion of diffusion weighted images (DWIs) from DICOM format to nrrd or nifti formats.

Tutorials

Panels and their use

Conversion Options: Options that are used for all conversion modes

  • Input DWI Volume file (inputVolume): Input DWI volume – not used for DicomToNrrd mode.

  • Output DWI Volume file (outputVolume): Output filename (.nhdr or .nrrd)

Dicom To Nrrd Conversion Parameters: Parameters for Dicom to NRRD Conversion

  • Input Dicom Data Directory (inputDicomDirectory): Directory holding Dicom series

NiftiFSL To Nrrd Conversion Parameters: NiftiFSL To Nrrd Conversion Parameters

  • FSL NIfTI File (fslNIFTIFile): 4D NIfTI file containing gradient volumes

  • Input bval file (inputBValues): The B Values are stored in FSL .bval text file format

  • Input bvec file (inputBVectors): The Gradient Vectors are stored in FSL .bvec text file format

Nrrd To NiftiFSL Conversion Parameters: Nrrd To NiftiFSL (NrrdToFSL) Conversion Parameters

  • Output nii file (outputNiftiFile): Nifti output filename (for Slicer GUI use).

  • Output bval file (outputBValues): The B Values are stored in FSL .bval text file format (defaults to .bval)

  • Output bvec file (outputBVectors): The Gradient Vectors are stored in FSL .bvec text file format (defaults to .bvec)

Advanced Conversion Parameters: Options to control the output.

  • Write Protocol Gradients File (writeProtocolGradientsFile): Write the protocol gradients to a file suffixed by “.txt” as they were specified in the procol by multiplying each diffusion gradient direction by the measurement frame. This file is for debugging purposes only, the format is not fixed, and will likely change as debugging of new dicom formats is necessary.

  • Use Identity Measurement Frame (useIdentityMeaseurementFrame): Adjust all the gradients so that the measurement frame is an identity matrix.

  • Use BMatrix Gradient Directions (useBMatrixGradientDirections): Fill the nhdr header with the gradient directions and bvalues computed out of the BMatrix. Only changes behavior for Siemens data. In some cases the standard public gradients are not properly computed. The gradients can be empirically computed from the private BMatrix fields. In some cases the private BMatrix is consistent with the public grandients, but not in all cases, when it exists BMatrix is usually most robust.

  • Output Directory (outputDirectory): Directory holding the output NRRD file

  • Small Gradient Threshold (smallGradientThreshold): If a gradient magnitude is greater than 0 and less than smallGradientThreshold, then DWIConvert will display an error message and quit, unless the useBMatrixGradientDirections option is set.

  • Transpose Input BVectors (transpose): FSL input BVectors are expected to be encoded in the input file as one vector per line. If it is not the case, use this option to transpose the file as it is read

  • Allow lossy image conversion (allowLossyConversion): The only supported output type is ‘short’. Conversion from images of a different type may cause data loss due to rounding or truncation. Use with caution!”

DEPRECATED THESE DO NOT WORK:

  • Gradient Vector File (gradientVectorFile): DEPRECATED: Use –inputBVector –inputBValue files Text file giving gradient vectors

  • Output fMRI file (fMRIOutput): DEPRECATED: No support or testing. Output a NRRD file, but without gradients

Contributors

Hans Johnson (UIowa), Vince Magnotta (UIowa) Joy Matsui (UIowa), Kent Williams (UIowa), Mark Scully (Uiowa), Xiaodong Tao (GE)

Acknowledgements

This work is part of the National Alliance for Medical Image Computing (NAMIC), funded by the National Institutes of Health through the NIH Roadmap for Medical Research, Grant U54 EB005149. Additional support for DTI data produced on Philips scanners was contributed by Vincent Magnotta and Hans Johnson at the University of Iowa.

Similar modules

SlicerDMRI extension

Information for Developers