MEDI_GUI error trying to open Philips dicom in Matlab 2020a

158 views
Skip to first unread message

Paul Mullins

unread,
Jun 4, 2020, 6:19:09 AM6/4/20
to medi-users
Hi, trying open DICOM data from Philips using MEDI_toolbox, and Matlab 2020a, this is the error message I get (using MEDI_GUI)

Operands to the || and && operators must be convertible to logical scalar values.

Error in Read_DICOM_get_tags (line 16)
        if (attrs(k).Group==gr)&&(attrs(k).Element==el)

Error in Read_DICOM (line 202)
                    info = Read_DICOM_get_tags(filename, ...

Error in MEDI_GUI>Loadbutton_Callback (line 164)
[iField,voxel_size,matrix_size,CF,delta_TE,TE,B0_dir] = Read_DICOM(FilePath);

Error in gui_mainfcn (line 95)
        feval(varargin{:});

Error in MEDI_GUI (line 43)
    gui_mainfcn(gui_State, varargin{:});

Any help appreciated. Also investigating on mathworks and will feed back anything I find out from there.

Paul.




Paul Mullins

unread,
Jun 5, 2020, 4:53:36 AM6/5/20
to medi-users
Solved the loading issue.

Posting here in case others working with Philips data have similar issues.

It seems (for my Philips DICOM data at least) the DICOM parameter tag "EchoNumber" is actually "EchoNumbers". Modifying the Read_DICOM.m and Read_Philips_DICOM.m files with that change enabled me to load the data. All I need to do now is deal with the following:

Warning: File and dictionary VR values do not match for attribute "RespiratoryTriggerDelayThreshold" (0020,9256). Expected:
FD. Found: UN. Consider setting the 'UseDictionaryVR' parameter to true.
> In dicominfo>convertRawAttr (line 152)
  In dicominfo>processMetadata (line 114)
  In dicominfo>parseSequence (line 488)
  In dicominfo>convertRawAttr (line 209)
  In dicominfo>processMetadata (line 114)
  In dicominfo (line 72)
  In Read_Philips_DICOM (line 75)
  In MEDI_GUI>Loadbutton_Callback (line 164)
  In gui_mainfcn (line 95)
  In MEDI_GUI (line 43)
  In matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MEDI_GUI('Loadbutton_Callback',hObject,eventdata,guidata(hObject)

Which I can see just requires me set the UseDictionaryVR to true in those places.
If anyone knows of a way to set 'UseDictionaryVR' to true by `default globally for when I use MEDI_toolbox, please let me know.

Paul.
Reply all
Reply to author
Forward
0 new messages