Submitted by xiaopeng on Thu, 07/17/2014 - 23:21
REST分类DICOM数据出错,提示ProtocolName出错,在REST_DicomSorter.m中改成SequenceName之后还是出错。之后在DPABI->Utilities->DICOM Sorter做相应修改后再运行,出现一下报错:
??? Index exceeds matrix dimensions.
Error in ==> w_DCMSort at 15
fprintf('Read %s etc.\n', OneDICOM{1});
Error in ==> DPABI_DCMSORTER_TOOL>ComputeButton_Callback at 227
w_DCMSort(DICOMCells, HierarchyValue, AnonyFlag, OutputDir);
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> DPABI_DCMSORTER_TOOL at 42
gui_mainfcn(gui_State, varargin{:});
Error in ==> @(hObject,eventdata)DPABI_DCMSORTER_TOOL('ComputeButton_Callback',hObject,eventdata,guidata(hObject))
??? Error while evaluating uicontrol Callback
>>
请老师指导
谢谢!
Submitted by LiXun on Fri, 07/18/2014 - 09:26 Permalink
Re: REST中DICOM数据分类出现错误
你好,这是因为dicom头信息里没有‘ProtocolName’这一项,你可以尝试将rest_Dicomsorter.m中的ProtocolName改为SeriesDescription。我们会在下个版本中改进此处。
Submitted by xiaopeng on Fri, 07/18/2014 - 11:52 Permalink
Re: REST中DICOM数据分类出现错误
您好,过来之后运行,还是有报错哦
Warning: Directory already exists.
> In rest_DicomSorter_gui>btnRun_Callback at 175
In gui_mainfcn at 96
In rest_DicomSorter_gui at 26
??? Reference to non-existent field 'SeriesDescription'.
Error in ==> rest_DicomSorter at 33
dirname=[outdir,filesep,dicominfotmp.PatientID,filesep,Indextmp(end-3:end),'_',dicominfotmp.SeriesDescription];
Error in ==> rest_DicomSorter_gui>btnRun_Callback at 180
dirlist=[rest_DicomSorter(handles.Cfg.DataDirs{i},outfile,dicomtype,handles.Cfg.DirectoryHierarchy);dirlist];
Error in ==> gui_mainfcn at 96
feval(varargin{:});
Error in ==> rest_DicomSorter_gui at 26
gui_mainfcn(gui_State, varargin{:});
??? Error while evaluating uicontrol Callback
Submitted by LiXun on Fri, 07/18/2014 - 21:29 Permalink
Re: REST中DICOM数据分类出现错误
有的dicom文件也没有SeriesDescription,但比较少见。发一个报错的dicom文件到我的邮箱:lixun2011@126.com我看看。