4 %> @image html Screenshot-uip_vis_image_cat.png
15 function varargout = uip_vis_image_cat(varargin)
16 % Last Modified by GUIDE v2.5 16-Jun-2011 17:41:45
18 % Begin initialization code - DO NOT EDIT
20 gui_State =
struct(
'gui_Name', mfilename, ...
21 'gui_Singleton', gui_Singleton, ...
22 'gui_OpeningFcn', @uip_vis_image_cat_OpeningFcn, ...
23 'gui_OutputFcn', @uip_vis_image_cat_OutputFcn, ...
24 'gui_LayoutFcn', [] , ...
26 if nargin && ischar(varargin{1})
27 gui_State.gui_Callback = str2func(varargin{1});
31 [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
33 gui_mainfcn(gui_State, varargin{:});
35 % End initialization code - DO NOT EDIT
38 % --- Executes just before uip_vis_image_cat is made visible.
39 function uip_vis_image_cat_OpeningFcn(hObject, eventdata, handles, varargin)
40 handles.input.
block = varargin{1};
42 handles.input.data = varargin{2};
44 handles.input.data = [];
46 handles.output.flag_ok = 0;
47 guidata(hObject, handles);
50 %#################################################################################################
53 function preview(handles)
54 data = handles.input.data;
56 irerrordlg('Dataset not specified!', 'Cannot preview');
58 o = handles.input.
block;
60 o.flag_set_position = 0;
61 cla(handles.axes1, 'reset');
68 function params = get_params(handles)
71 'mode', int2str(
get(handles.popupmenu_mode,
'Value')-1), ...
72 'idx_fea', int2str(eval(
get(handles.edit_idx_fea,
'String'))) ...
73 'min_ppc', int2str(eval(
get(handles.edit_min_ppc,
'String'))) ...
74 'max_c', int2str(eval(
get(handles.edit_max_c,
'String'))) ...
79 %#################################################################################################
83 % --- Outputs from
this function are returned to the command clae.
84 function varargout = uip_vis_image_cat_OutputFcn(hObject, eventdata, handles)
86 uiwait(handles.figure1);
87 handles = guidata(hObject);
88 varargout{1} = handles.output;
93 varargout{1} = output;
96 % --- Executes on button press in pushbuttonOK.
97 function pushbuttonOK_Callback(hObject, eventdata, handles)
99 handles.output.params = get_params(handles);
100 handles.output.flag_ok = 1;
101 guidata(hObject, handles);
108 % --- Executes on selection change in popupmenu_mode.
109 function popupmenu_mode_Callback(hObject, eventdata, handles)
111 % --- Executes during
object creation, after setting all properties.
112 function popupmenu_mode_CreateFcn(hObject, eventdata, handles)
113 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
114 set(hObject,'BackgroundColor','white');
117 function edit_idx_fea_Callback(hObject, eventdata, handles)
119 % --- Executes during
object creation, after setting all properties.
120 function edit_idx_fea_CreateFcn(hObject, eventdata, handles)
121 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
122 set(hObject,'BackgroundColor','white');
125 % --- Executes on button press in pushbutton_preview.
126 function pushbutton_preview_Callback(hObject, eventdata, handles)
130 function edit_min_ppc_Callback(hObject, eventdata, handles)
132 % --- Executes during
object creation, after setting all properties.
133 function edit_min_ppc_CreateFcn(hObject, eventdata, handles)
134 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
135 set(hObject,'BackgroundColor','white');
140 function edit_max_c_Callback(hObject, eventdata, handles)
143 % --- Executes during
object creation, after setting all properties.
144 function edit_max_c_CreateFcn(hObject, eventdata, handles)
145 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
146 set(hObject,'BackgroundColor','white');
Property idx_fea
=1. Index of feature in case mode is 0.
function params2str(in params, in flag_o)
function setbatch(in o, in params)
function gui_set_position(in hObject)
Property mode
=0. 0: feature; 1: class
function irerrordlg(in errorstring, in dlgname)
Image map for non-ordered, discrete features (e.g. from clustering)