Medi_Gui error on attempting to load Phillips data

75 views
Skip to first unread message

Paul Mullins

unread,
Jul 26, 2019, 10:15:50 AM7/26/19
to medi-users
Dear MEDI_TOOLBOX developers,

I am trying to load some Philips data and use the MEDI_GUI. IN doing so I browse to the dicom directory. When I click the load button I get these error messages:

Warning: File and dictionary VR values do not match for attribute "RespiratoryIntervalTime" (0020,9254). Expected: FD. Found: UN. Consider setting the
'UseDictionaryVR' parameter to true. 
> In dicominfo>convertRawAttr (line 147)
  In dicominfo>processMetadata (line 108)
  In dicominfo>parseSequence (line 476)
  In dicominfo>convertRawAttr (line 204)
  In dicominfo>processMetadata (line 108)
  In dicominfo (line 71)
  In Read_DICOM (line 23)
  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)) 
Warning: File and dictionary VR values do not match for attribute "RespiratoryTriggerDelayTime" (0020,9255). Expected: FD. Found: UN. Consider setting
the 'UseDictionaryVR' parameter to true. 
> In dicominfo>convertRawAttr (line 147)
  In dicominfo>processMetadata (line 108)
  In dicominfo>parseSequence (line 476)
  In dicominfo>convertRawAttr (line 204)
  In dicominfo>processMetadata (line 108)
  In dicominfo (line 71)
  In Read_DICOM (line 23)
  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)) 
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 147)
  In dicominfo>processMetadata (line 108)
  In dicominfo>parseSequence (line 476)
  In dicominfo>convertRawAttr (line 204)
  In dicominfo>processMetadata (line 108)
  In dicominfo (line 71)
  In Read_DICOM (line 23)
  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)) 
Error: File: dicomattrs.m Line: 1 Column: 50
Invalid expression. Check for missing multiplication operator, missing or unbalanced delimiters, or other syntax error. To construct matrices, use
brackets instead of parentheses.

Error in Read_DICOM/get_dcm_tags (line 319)
            attrs=dicomattrs(filename);

Error in Read_DICOM (line 181)
                info = get_dcm_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{:});

Error in matlab.graphics.internal.figfile.FigFile/read>@(hObject,eventdata)MEDI_GUI('Loadbutton_Callback',hObject,eventdata,guidata(hObject))
 
Error while evaluating UIControl Callback.
Any ideas of what may be causing these problems?

Paul.

Paul Mullins

unread,
Jul 26, 2019, 10:21:24 AM7/26/19
to medi-users
Okay, managed to solve this - I think - by editing the MEDI_GUI.m file, line 164 from:
 
[iField,voxel_size,matrix_size,CF,delta_TE,TE,B0_dir] = Read_DICOM(FilePath);

to 

[iField,voxel_size,matrix_size,CF,delta_TE,TE,B0_dir] = Read_Philips_DICOM(FilePath);

I am sending this solution and reply, so that if some one else has a similar problem in the future they can find this solution to it.  

Paul Mullins

unread,
Jul 26, 2019, 10:40:44 AM7/26/19
to medi-users
One more thing I have worked out - to remove the annoying warning messages about 'UseDictionaryVR' you may need to further modify the Read_Philips_Dicom.m file by inserting 'UseDictionaryVR', true into lines 39, 52, and 75 like so:

39 -  info = dicominfo(fnTemp, 'UseDictionaryVR', true);
52 -  info = dicominfo([DicomFolder '/' filelist(i).name], 'UseDictionaryVR', true);
75 -  info = dicominfo([DicomFolder '/' filelist(i).name],'UseDictionaryVR', true);



On Friday, July 26, 2019 at 3:15:50 PM UTC+1, Paul Mullins wrote:
Reply all
Reply to author
Forward
0 new messages