# Diffusion-weighted DICOM Import (DWIConvert) standard error?

**URL:** <https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895>\
**Category:** Support\
**Tags:** dicom\
**Created:** [August 26, 2018, 4:35am UTC](https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895 "2018-08-26T04:35:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cyufu](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cyufu/32/1779_2.png) [@cyufu](https://discourse.slicer.org/u/cyufu)\
**Post date:** [August 26, 2018, 4:35am UTC](https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895/1 "2018-08-26T04:35:24Z")

</div>

Operating system：Windows 10  
Slicer version:4.9.0（2018-08-04）  
DTI data of the United Imaging 3.0T （China）

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/3/a349fc89e920c2b34168ea8ebce5a74ef803f107.png)

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/3/9/394b2ff89d559efddfd833e39c577c3c399c11c5.png)

```auto
Diffusion-weighted DICOM Import (DWIConvert) standard error:

Exception creating converter 
itk::ExceptionObject (0000009A0518B610)
Location: "unknown" 
File: D:\D\P\Slicer-0-build\BRAINSTools\DWIConvert\GenericDWIConverter.cxx
Line: 13
Description: itk::ERROR: LoadFromDisk not relevant

Diffusion-weighted DICOM Import (DWIConvert) standard output:

======= DWI Convert Public Lib Ctest =========

```

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/6/e/6ef36e32726ecb6e22b42ff8f0191f4527c024e3.png)

```auto
Found CommandLine Module, target is C:/Program Files/Slicer 4.9.0-2018-08-04/bin/../lib/Slicer-4.9/cli-modules/DWIConvert.exe
ModuleType: CommandLineModule
Diffusion-weighted DICOM Import (DWIConvert) command line: 

C:/Program Files/Slicer 4.9.0-2018-08-04/bin/../lib/Slicer-4.9/cli-modules/DWIConvert.exe --conversionMode DicomToNrrd --outputVolume C:/Users/Cyufu/AppData/Local/Temp/Slicer/BBDCA_vtkMRMLDiffusionWeightedVolumeNodeB.nrrd --inputDicomDirectory D:/3DSlicer Data/DTI/20180826 XU Kaiyu/epi_dti_20180823 --outputDirectory . --smallGradientThreshold 0.2 --transposeInputBVectors 

```

Please let me know if you need any more information to debug this issue.  
Best,  
Caoyufu

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [August 26, 2018, 6:37pm UTC](https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895/2 "2018-08-26T18:37:03Z")

</div>

The error you posted often means that DWIConvert could not find any DTI-specific information in the DICOM (unfortunately the exception path doesn’t give a helpful error message right now).

The most common cause is that the DICOM files were anonymized and the necessary fields are not present in the header.

However:

> [@cyufu](#):
>
> United Imaging 3.0T

I am not familiar with this scanner brand, so don’t know what fields it uses to store DTI information. If they are not using the standard DICOM tags for diffusion information, then a vendor-specific reader may need to be implemented in DWIConvert. I would suggest to contact the vendor to find out.

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [August 26, 2018, 6:49pm UTC](https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895/3 "2018-08-26T18:49:47Z")

</div>

> [@ihnorton](#):
>
> I would suggest to contact the vendor to find out.

Specifically, DWIConvert needs to know the DICOM tags which store b-value and gradient information. For example, you can find some discussion/notes about the tags of existing supported vendors on this page:

[https://na-mic.org/wiki/NAMIC\_Wiki:DTI:DICOM\_for\_DWI\_and\_DTI](https://na-mic.org/wiki/NAMIC_Wiki:DTI:DICOM_for_DWI_and_DTI)

---

<div class="post-metadata">

**Author:** ![ihnorton](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ihnorton/32/9_2.png) [@ihnorton](https://discourse.slicer.org/u/ihnorton)\
**Post date:** [October 17, 2018, 2:13pm UTC](https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895/4 "2018-10-17T14:13:39Z")

</div>

@cyufu dcm2niix now has preliminary support for UIH scanner diffusion images, please see:

> <https://github.com/rordenlab/dcm2niix/issues/225#issuecomment-426377407>
>
> UIH is a noted MR manufacturer from China which is currently exploring the world…wide markets. By now many institutes over the world have been using UIH　ＭＲscanners to acquire DWI/DTI and fMRI data. The users also want to convert their dicom data to NIfTI format using dcm2niix which is very popular in the brain and neurology research community. But the dcm2niix currently does not recognize the UIH data format correctly. As an example, We tried to convert the fMRI data using dcm2niix and got the following result of improper format conversion.
> !\[\](http://7xps0u.com1.z0.glb.clouddn.com/dcm2niix\_uih\_wrong\_conversion.jpg)
> 
> UIH supports two ways of archiving the DWI/DTI and fMRI data. One way is one dicom file per slice and the other is one dicom file per volume (We call it GRID format). The private tags used in the images are shown in the following table. 
> 
> 
> Tag ID | Tag Name | VR | VM | Description | Sample
> \-- | -- | -- | -- | -- | --
> 0061,1002 | Generate Private | US | 1 | Flag to generate private format file | 1
> \*\*0061,4002\*\* | \*\*FOV\*\* | SH | 1 | FOV(mm) | 224\*224
> 0065,1000 | MeasurmentUID | UL | 1 | Measurement UID of Protocol | 12547865
> 0065,1002 | ImageOrientationDisplayed | SH | 1 | Image Orientation Displayed | Sag or Sag\>Cor
> 0065,1003 | ReceiveCoil | LO | 1 | Receive Coil Information | H 8
> 0065,1004 | Interpolation | SH | 1 | Interpolation | I
> 0065,1005 | PE Direction Displayed | SH | 1 | Phase encoding diretion displayed | A-\>P or H-\>F
> 0065,1006 | Slice Group ID | IS | 1 | Slice Group ID | 1
> 0065,1007 | Uprotocol | OB | 1 | Uprotocol value |  
> 0065,1009 | BActualValue | FD | 1 | Actual B-Value from sequence | 1000.0
> \*\*0065,100A\*\* | \*\*BUserValue\*\* | FD | 1 | User Choose B-Value from UI | 1000.0
> \*\*0065,100B\*\* | \*\*Block Size\*\* | DS | 1 | Size of the paradigm/block | 10
> \*\*0065,100C\*\* | \*\*Experimental status\*\* | SH | 1 | fMRI | rest/active
> 0065,100D | Parallel Information | SH | 1 | ratio of parallel acquisition and acceleration |  
> 0065,100F | Slice Position | SH | 1 | Slice location displayed on the screen | H23.4
> 0065,1011 | Sections | SH | 1 |   |  
> 0065,1013 | InPlaneRotAngle | FD（°） | 1 | Rotation angle in the plane | -0.5936
> 0065,1014 | SliceNormalVector | DS | 3 | Normal vector of the slice | 0\\0\\1
> 0065,1015 | SliceCenterPosition | DS | 3 | Center position of the slice | 0\\0\\0
> 0065,1016 | PixelRotateModel | UL | 1 | Pixel Rotation Model | 4
> 0065,1017 | SAR Model | LO | 1 | Calculation model of SAR value | Normal:WHBST
> 0065,1018 | dB/dt Model | LO | 1 | Calculation model of dB/dt | Normal
> 0065,1023 | TablePosition | LO | 1 | Table Position | 0
> 0065,1025 | Slice Gap | DS | 1 | Slice Gap | 0.0
> 0065,1029 | AcquisitionDuration | SH | 1 | Acquisition Duration | 0.03
> 0065,102B | ApplicationCategory | LT | 1 | Application names available | DTI\\Func
> 0065,102C | RepeatitionIndex | IS | 1 |   | 0
> \*\*0065,102D\*\* | \*\*SequenceDisplayName\*\* | ST | 1 | Sequence display name | Epi\_dti\_b0
> 0065,102E | NoiseDecovarFlag | LO | 1 | Noise decorrelation flag | PreWhite
> 0065,102F | ScaleFactor | FL | 1 | scale factor | 2.125
> 0065,1031 | MRSequenceVariant | SH | 1 | SequenceVariant |  
> 0065,1032 | MRKSpaceFilter | SH | 1 | K space filter |  
> 0065,1033 | MRTableMode | SH | 1 | Table mode | Fix
> 0065,1036 | MRDiscoParameter | OB | 1 |   |  
> \*\*0065,1037\*\* | \*\*MRDiffusionGradOrientation\*\* | FD | 3 | Diffusion gradient orientation | 0\\0\\0
> 0065,1038 | MRPerfusionNoiseLevel | FD | 1 | epi\_dwi/perfusion noise level | 40
> 0065,1039 | MRGradRange | SH | 6 | linear range of gradient | 0.0\\157\\0.0\\157\\0.0\\125
> \*\*0065,1050\*\* | \*\*MR Number Of Slice In Volume\*\* | DS | 1 | Number Of Frames In a Volume，Columns of each frame: cols =ceil(sqrt(total)) ; Rows of each frame: rows =ceil(total/cols) ; appeared when image type (00080008) has VFRAME | 27
> 0065,1051 | MR VFrame Sequence | SQ | 1 | 1 |  
> -\>0008,0022 | Acquisition Date | DA | 1 |   |  
> -\>0008,0032 | Acquisition Time | TM | 1 |   |  
> -\>0008,002A | Acquisition DateTime | DT | 1 |   |  
> -\>0020,0032 | ImagePosition(Patient) | DS | 3 |   |  
> -\>00201041 | Slice Location | DS | 1 |   |  
> -\>0018,9073 | Acquisition Duration | FD | 1 |   |  
> -\>0065,100C | MRExperimental Status | SH | 1 |   | rest/active
> 
> The example data can be downloaded from https://1drv.ms/f/s!Avf7THyflzj1gnO37GL2I8Hk-0MV . The gradient table for the DTI data is also provided.
> 
> If any questions, please give me a reply or contact me via email chunshan.yang@united-imaging.com

I don’t think we (me or @hjmjohnson) have the bandwidth to implement this format natively in DWIConvert in the near future, so I would suggest to use dcm2niix, and then import the nifti files using DWIConvert.

---

<div class="post-metadata">

**Author:** ![Ekaterina](https://avatars.discourse-cdn.com/v4/letter/e/bc79bd/32.png) [@Ekaterina](https://discourse.slicer.org/u/Ekaterina)\
**Post date:** [February 18, 2019, 5:49pm UTC](https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895/5 "2019-02-18T17:49:02Z")

</div>

Good day!  
Please help me!  
3D-slicer incorrectly reads images from a Toshiba tomograph. I do not understand how to transpose the matrix, I can ask you to write me the steps. I will be very grateful to you.

Do you have the opportunity to see my pictures? I can send them to you by mail (pictures are already anonymized).

---

<div class="post-metadata">

**Author:** ![ljod](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/ljod/32/652_2.png) [@ljod](https://discourse.slicer.org/u/ljod)\
**Post date:** [February 18, 2019, 8:30pm UTC](https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895/6 "2019-02-18T20:30:53Z")

</div>

Hello. Have you tried the program dcm2niix to convert to nrrd, then read it into Slicer? This should work.

Alternatively we have a new import module under testing now. To try it, download the Nightly Build from [slicer.org](http://slicer.org), then use the Extension Manager to install the Dcm2niix module. It seems to be available for Mac and Linux currently. It is under construction so please let us know if it works for you.

---

<div class="post-metadata">

**Author:** ![Alex\_Donabedian](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/alex_donabedian/32/67737_2.png) [@Alex\_Donabedian](https://discourse.slicer.org/u/Alex_Donabedian)\
**Post date:** [November 29, 2023, 6:50pm UTC](https://discourse.slicer.org/t/diffusion-weighted-dicom-import-dwiconvert-standard-error/3895/7 "2023-11-29T18:50:48Z")

</div>

Hello, are you aware if DWIConvert is compatible with scans from a Bruker 7T?
