3 %> @brief Properties Window
for @ref
vis_image
4 %> @image html Screenshot-uip_vis_image.png
13 function varargout = uip_vis_image(varargin)
14 % Last Modified by GUIDE v2.5 11-Jun-2011 02:11:13
16 % Begin initialization code - DO NOT EDIT
18 gui_State =
struct(
'gui_Name', mfilename, ...
19 'gui_Singleton', gui_Singleton, ...
20 'gui_OpeningFcn', @uip_vis_image_OpeningFcn, ...
21 'gui_OutputFcn', @uip_vis_image_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_vis_image is made visible.
37 function uip_vis_image_OpeningFcn(hObject, eventdata, handles, varargin)
38 handles.input.
block = varargin{1};
40 handles.input.data = varargin{2};
42 handles.input.data = [];
44 handles.output.flag_ok = 0;
45 guidata(hObject, handles);
48 %#################################################################################################
51 function preview(handles)
52 data = handles.input.data;
54 irerrordlg('Dataset not specified!', 'Cannot preview');
56 o = handles.input.
block;
58 o.flag_set_position = 0;
59 cla(handles.axes1, 'reset');
65 function params = get_params(handles)
68 'mode', int2str(
get(handles.popupmenu_mode,
'Value')-1), ...
69 'idx_fea', int2str(eval(
get(handles.edit_idx_fea,
'String'))) ...
74 %#################################################################################################
77 % --- Outputs from
this function are returned to the command clae.
78 function varargout = uip_vis_image_OutputFcn(hObject, eventdata, handles)
80 uiwait(handles.figure1);
81 handles = guidata(hObject);
82 varargout{1} = handles.output;
87 varargout{1} = output;
90 % --- Executes on button press in pushbuttonOK.
91 function pushbuttonOK_Callback(hObject, eventdata, handles)
93 handles.output.params = get_params(handles);
94 handles.output.flag_ok = 1;
95 guidata(hObject, handles);
102 % --- Executes on selection change in popupmenu_mode.
103 function popupmenu_mode_Callback(hObject, eventdata, handles)
105 % --- Executes during
object creation, after setting all properties.
106 function popupmenu_mode_CreateFcn(hObject, eventdata, handles)
107 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
108 set(hObject,'BackgroundColor','white');
111 function edit_idx_fea_Callback(hObject, eventdata, handles)
113 % --- Executes during
object creation, after setting all properties.
114 function edit_idx_fea_CreateFcn(hObject, eventdata, handles)
115 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
116 set(hObject,'BackgroundColor','white');
119 % --- Executes on button press in pushbutton_preview.
120 function pushbutton_preview_Callback(hObject, eventdata, handles)
Property mode
=0. 0: feature; 1: class; 2: y
function params2str(in params, in flag_o)
function setbatch(in o, in params)
Property idx_fea
=1. Index of feature in case mode is 0.
function gui_set_position(in hObject)
function irerrordlg(in errorstring, in dlgname)