4 %> @image html Screenshot-uip_clssr_dist.png
13 function varargout = uip_clssr_dist(varargin)
14 % Last Modified by GUIDE v2.5 04-Feb-2011 14:40:39
16 % Begin initialization code - DO NOT EDIT
18 gui_State =
struct(
'gui_Name', mfilename, ...
19 'gui_Singleton', gui_Singleton, ...
20 'gui_OpeningFcn', @uip_clssr_dist_OpeningFcn, ...
21 'gui_OutputFcn', @uip_clssr_dist_OutputFcn, ...
22 'gui_LayoutFcn', [] , ...
24 if nargin && ischar(varargin{1})
25 gui_State.gui_Callback = str2func(varargin{1});
29 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
31 gui_mainfcn(gui_State, varargin{:});
33 % End initialization code - DO NOT EDIT
36 % --- Executes just before uip_clssr_dist is made visible.
37 function uip_clssr_dist_OpeningFcn(hObject, eventdata, handles, varargin)
38 handles.output.flag_ok = 0;
39 guidata(hObject, handles);
43 % --- Outputs from this function are returned to the command line.
44 function varargout = uip_clssr_dist_OutputFcn(hObject, eventdata, handles)
46 uiwait(handles.figure1);
47 handles = guidata(hObject);
48 varargout{1} = handles.output;
52 varargout{1} = output;
56 % --- Executes on button press in pushbuttonCreate.
57 function pushbuttonCreate_Callback(hObject, eventdata, handles)
58 % hObject handle to pushbuttonCreate (see GCBO)
59 % eventdata reserved - to be defined in a future version of MATLAB
60 % handles structure with handles and user data (see GUIDATA)
62 methods = {
'euclidean',
'classify'};
63 method = methods{
get(handles.popupmenuMethod,
'Value')};
66 handles.output.params = {...
67 'normtype', [
'''' method ''''], ...
68 'flag_pr', int2str(
get(handles.checkboxPr,
'Value')) ...
70 handles.output.flag_ok = 1;
71 guidata(hObject, handles);
78 % --- Executes on selection change in popupmenuMethod.
79 function popupmenuMethod_Callback(hObject, eventdata, handles)
80 % hObject handle to popupmenuMethod (see GCBO)
81 % eventdata reserved - to be defined in a future version of MATLAB
82 % handles structure with handles and user data (see GUIDATA)
84 % Hints: contents =
get(hObject,
'String') returns popupmenuMethod contents
as cell array
85 % contents{
get(hObject,
'Value')} returns selected item from popupmenuMethod
88 % --- Executes during
object creation, after setting all properties.
89 function popupmenuMethod_CreateFcn(hObject, eventdata, handles)
90 % hObject handle to popupmenuMethod (see GCBO)
91 % eventdata reserved - to be defined in a future version of MATLAB
92 % handles empty - handles not created until after all CreateFcns called
94 % Hint: popupmenu controls usually have a white background on Windows.
95 % See ISPC and COMPUTER.
96 if ispc && isequal(
get(hObject,
'BackgroundColor'),
get(0,
'defaultUicontrolBackgroundColor'))
97 set(hObject,'BackgroundColor','white');
101 % --- Executes on button press in checkboxPr.
102 function checkboxPr_Callback(hObject, eventdata, handles)
Least-Distance-to-Class-Mean Classifier.
function gui_set_position(in hObject)
Analysis Session (AS) base class.
function irerrordlg(in errorstring, in dlgname)