Rank: 648 based on 191 downloads (last 30 days) and 1 file submitted
photo

Xiangrui Li

E-mail
Company/University
The Ohio State University

Personal Profile:

 

Watch this Author's files

 

Files Posted by Xiangrui Li
Updated   File Tags Downloads
(last 30 days)
Comments Rating
17 Dec 2014 Screenshot DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li dicom, nifti, siemens, mri, ge, philips 191 14
  • 5.0
5.0 | 2 ratings
Comments and Ratings by Xiangrui Li View all
Updated File Comments Rating
24 Sep 2014 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li

Dear Macro,
Thank you for the error report, and for sending me the file for diagnose.

The problem is caused by some 3rd party dicom converter, which loses the VR info for vendor-specific tags (private tags) during the conversion. Without correct VR, these tags are not correctly interpreted by dicm2nii.

I guess the problem reported by JuanesA89 is likely the same cause.

We now know that GDCM and DicomVCL.com converters, at least some versions of these converters, may cause this problem.

So the suggested solution is to use original dicom data from scanner without other conversion.

-Xiangrui

27 Jan 2014 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li

Hi Paul,
Thank you for the comments and suggestions.

Now the missing file check is not as strict as before. For Philips data, this check is skipped due to the possible sparse instance numbering. For other vendors, missing files at beginning is allowed now.

The bug in save_dti_para is fixed.

The converter can deal with dicom files without meta info now.

Cheers.

-Xiangrui

21 Nov 2013 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li

Hi JuanesA89,
The error means number of slices extracted by the code is not a single number, which is odd. If you don't mind, you can send me one of your dicom files, or dicom header of a file returned by hdr = dicm_hdr(dicmFileName).

-Xiangrui

15 Nov 2013 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li

Hi Qingyan,
I just did an update last night, and it may be available sometime today. I believe it should get bval/bvec from your PAR file. If no, please let me know.
-Xiangrui

02 Oct 2013 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li

Hi O.A,
Thank you for the feedback. I realize it is because fullfile in older Matlab doesn't support cellstr input. Now I use strcat to fix the issue. Please wait for the next update to be available.

Also I tested only V4 of PAR file. In case of PAR file parsing problem, please send me a PAR file if yours is not V4.

-Xiangrui

Comments and Ratings on Xiangrui Li's Files View all
Updated File Comment by Comments Rating
11 Dec 2014 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li Naho

This was really helpful. Thank you so much!!! :)

24 Sep 2014 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li Xiangrui Li

Dear Macro,
Thank you for the error report, and for sending me the file for diagnose.

The problem is caused by some 3rd party dicom converter, which loses the VR info for vendor-specific tags (private tags) during the conversion. Without correct VR, these tags are not correctly interpreted by dicm2nii.

I guess the problem reported by JuanesA89 is likely the same cause.

We now know that GDCM and DicomVCL.com converters, at least some versions of these converters, may cause this problem.

So the suggested solution is to use original dicom data from scanner without other conversion.

-Xiangrui

23 Sep 2014 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li Marco Rotonda

Hi Xiangrui,
I'm trying to load some dicom files with dicm2nii.
With general gui I have this error (I'm copying all the command window):

dicm2nii
Xiangrui Li's dicm2nii (feedback to xiangrui.li@gmail.com)
Validating 20 files (GE) ...
Converting 1 series into .nii.gz: subject R A
Cor_T2_FRFSE 20

In an assignment A(I) = B, the number of elements in B and I must be the same.

Error in dicm2nii (line 625)
for j = 1:dim(3), t(j) = tryGetField(h{i}{j}, flds{ind}, nan); end

Error in dicm2nii>dicm2nii_gui (line 1688)
dicm2nii(src, dst, rstFmt, mocoOpt, subjName);

Error in dicm2nii (line 224)
dicm2nii_gui(dataFolder); % mis-use first two input for GUI


Error while evaluating uicontrol Callback

This is what I have if I give a more specific instruction:
dicm2nii('/Users/blond/Documents/NIC/AR/SER006', '/Users/blond/Documents/NIC/AR/SER006/corrected',1,1);
Xiangrui Li's dicm2nii (feedback to xiangrui.li@gmail.com)
Validating 24 files (GE) ...
Converting 1 series into .nii.gz: subject R A
Cor_T2_FRFSE 20
625 for j = 1:dim(3), t(j) = tryGetField(h{i}{j}, flds{ind}, nan); end

In an assignment A(I) = B, the number of elements in B and I must be the same.

Error in dicm2nii (line 625)
for j = 1:dim(3), t(j) = tryGetField(h{i}{j}, flds{ind}, nan); end

Any idea?

Thanks in advance.

Marco

31 May 2014 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li peter888

the dicm2nii tool is very useful...
thanks Dr Xiangrui Li.

27 Jan 2014 DICOM to NIfTI converter dicm2nii.m converts dicom files into nifti files. Author: Xiangrui Li Xiangrui Li

Hi Paul,
Thank you for the comments and suggestions.

Now the missing file check is not as strict as before. For Philips data, this check is skipped due to the possible sparse instance numbering. For other vendors, missing files at beginning is allowed now.

The bug in save_dti_para is fixed.

The converter can deal with dicom files without meta info now.

Cheers.

-Xiangrui

Contact us