資源簡介
GUI界面,DICOM數據讀取,截取ROI
代碼片段和文件信息
function?varargout?=?GetNewDICOM(varargin)
%?GETNEWDICOM?MATLAB?code?for?GetNewDICOM.fig
%??????GETNEWDICOM?by?itself?creates?a?new?GETNEWDICOM?or?raises?the?existing
%??????singleton*.
%
%??????H?=?GETNEWDICOM?returns?the?handle?to?a?new?GETNEWDICOM?or?the?handle?to
%??????the?existing?singleton*.
%
%??????GETNEWDICOM(‘CALLBACK‘hobjecteventDatahandles...)?calls?the?local
%??????function?named?CALLBACK?in?GETNEWDICOM.M?with?the?given?input?arguments.
%
%??????GETNEWDICOM(‘Property‘‘Value‘...)?creates?a?new?GETNEWDICOM?or?raises?the
%??????existing?singleton*.??Starting?from?the?left?property?value?pairs?are
%??????applied?to?the?GUI?before?GetNewDICOM_OpeningFcn?gets?called.??An
%??????unrecognized?property?name?or?invalid?value?makes?property?application
%??????stop.??All?inputs?are?passed?to?GetNewDICOM_OpeningFcn?via?varargin.
%
%??????*See?GUI?Options?on?GUIDE‘s?Tools?menu.??Choose?“GUI?allows?only?one
%??????instance?to?run?(singleton)“.
%
%?See?also:?GUIDE?GUIDATA?GUIHANDLES
%?Edit?the?above?text?to?modify?the?response?to?help?GetNewDICOM
%?Last?Modified?by?GUIDE?v2.5?17-Jul-2014?16:14:42
%?Begin?initialization?code?-?DO?NOT?EDIT
gui_Singleton?=?1;
gui_State?=?struct(‘gui_Name‘???????mfilename?...
???????????????????‘gui_Singleton‘??gui_Singleton?...
???????????????????‘gui_OpeningFcn‘?@GetNewDICOM_OpeningFcn?...
???????????????????‘gui_OutputFcn‘??@GetNewDICOM_OutputFcn?...
???????????????????‘gui_LayoutFcn‘??[]??...
???????????????????‘gui_Callback‘???[]);
if?nargin?&&?ischar(varargin{1})
????gui_State.gui_Callback?=?str2func(varargin{1});
end
if?nargout
????[varargout{1:nargout}]?=?gui_mainfcn(gui_State?varargin{:});
else
????gui_mainfcn(gui_State?varargin{:});
end
%?End?initialization?code?-?DO?NOT?EDIT
%?---?Executes?just?before?GetNewDICOM?is?made?visible.
function?GetNewDICOM_OpeningFcn(hobject?eventdata?handles?varargin)
%?This?function?has?no?output?args?see?OutputFcn.
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?varargin???command?line?arguments?to?GetNewDICOM?(see?VARARGIN)
%?Choose?default?command?line?output?for?GetNewDICOM
handles.output?=?hobject;
%?Update?handles?structure
guidata(hobject?handles);
%?UIWAIT?makes?GetNewDICOM?wait?for?user?response?(see?UIRESUME)
%?uiwait(handles.figure_DICOM);
global?count;
global?img_cropNew;
global?width;
global?height;
global?Count_Sum;
count=0;
set(handles.Button_New‘Enable‘‘off‘);%獲取圖像塊之前,合并圖像按鈕不顯示
img_cropNew=cell(1Count_Sum);%創建存儲合并圖像的矩陣
%?---?Outputs?from?this?function?are?returned?to?the?command?line.
function?varargout?=?GetNewDICOM_OutputFcn(hobject?eventdata?handles)?
%?varargout??cell?array?for?returning?output?args?(see?VARARGOUT);
%?hobject????handle?to?figure
%?eventdata??reserved?-?to?be?defined?in?a?future?version?of?MATLAB
%?handles????structure?with?handles?and?user?data?(see?GUIDATA)
%?Get?default?command?li
- 上一篇:尺度函數和小波基構造程序
- 下一篇:數字圖像處理MATLAB2015版 源代碼
評論
共有 條評論