niftiread returns empty array

12 views (last 30 days)
Ali Aghaeifar
Ali Aghaeifar on 24 Jul 2018
Answered: Ali Aghaeifar on 26 Jul 2018
I use a well-known tool called dcm2niix to convert DICOMs to nifti. the nifti files can be read by any nifti viewer softwares and also with SPM , But, when I try to load the files into the Matlab using built-in niftiread function, it returns an empty array. Any comment why 'niftiread' doesn't work properly?
'niftiinfo' function works fine and can read header data.
Matlab version: R2018a
  2 Comments
Ali Aghaeifar
Ali Aghaeifar on 26 Jul 2018
Seems this function is not implemented properly in MATLAB. I found a solution for this problem. more information here:
Guillaume
Guillaume on 26 Jul 2018
Ali, I suggest you put that as an answer then mark the question answered, so people know it is resolved (sort of).
I suggest you also raise a bug report with Mathworks. Even if they are already aware of the bug, you raising a bug report means you'll be informed whenever it is fixed.

Sign in to comment.

Accepted Answer

Ali Aghaeifar
Ali Aghaeifar on 26 Jul 2018
Seems this function is not implemented properly in MATLAB. I found a solution for this problem. more information here:

More Answers (0)

Categories

Find more on DICOM Format in Help Center and File Exchange

Products


Release

R2018a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!