Read_DICOM failing on Example Siemens Data, MATLAB 2021b

184 views
Skip to first unread message

Byumri Rf

unread,
Mar 17, 2022, 1:15:32 PM3/17/22
to medi-users
Hi All, running a fresh install of MEDI on MATLAB 2021b, image processing toolbox version 11.6.

When attempting to run runme.m for the invivo Siemens data set, I get the following errors:
Operands to the logical and (&&) and or (||) operators must be convertible to logical scalar values.

Error in Read_Siemens_DICOM>get_dcm_tags (line 195)
            if (attrs(i).Group==gr)&&(attrs(i).Element==el)

Error in Read_Siemens_DICOM (line 43)
info2 = get_dcm_tags(filename, {'EchoNumber'});

Error in Read_DICOM (line 51)
        [iField,voxel_size,matrix_size,CF,delta_TE,TE,B0_dir,files]=Read_Siemens_DICOM(DicomFolder);

After poking around a bit, what I've discovered is that dicomlookup seems to not find a group or element for the attribute name "EchoNumber",   Dicomlookup produces an empty variable when attempting the lookup.

Could there be an error with my DICOM dictionary? Any advice on what I could do to debug this issue?

Thanks,

Byumri Rf

unread,
Mar 17, 2022, 1:23:24 PM3/17/22
to medi-users
Here's an update. It looks like, there are group and element numbers for the attribute "EchoNumbers" but not "EchoNumber." I wonder whether there is some sort of issue with my default dicom dictionary? Or is this a typo?

spince...@gmail.com

unread,
Mar 17, 2022, 2:30:30 PM3/17/22
to medi-users
Recent versions of Matlab have indeed changed the name of this field from EchoNumber to EchoNumbers. You can change the code accordingly. This should be fixed in the next version.

Sean Sethi

unread,
Aug 9, 2022, 6:10:10 PM8/9/22
to medi-users

Hi,

I also have a data set from Syngo MR XA10 which EchoNumber(s) is completely missing. 

Sean

Tomas Muñoz Santoro

unread,
Jun 6, 2023, 6:56:13 AM6/6/23
to medi-users
Hello Medi Group!

The problem can be solved changing the code accordingly as spince said. 

Regards from Spain.

Tomás 
Reply all
Reply to author
Forward
0 new messages