IRootLab
An Open-Source MATLAB toolbox for vibrational biospectroscopy
uip_pre_wden.m
Go to the documentation of this file.
1 %>@file
2 %>@ingroup guigroup
3 %>@brief Properties Window for @ref pre_wden
4 %>
5 %>@image html Screenshot-uip_pre_wden.png
6 %>
7 %> <b>Wavelet name</b> - see pre_wden::waveletname
8 %>
9 %> <b>Number of decomposition levels</b> - see pre_wden::no_levels
10 %>
11 %> <b>Thresholds</b> - see pre_wden::thresholds
12 %>
13 %> @sa pre_wden
14 
15 %>@cond
16 function varargout = blockuip_fsel_rmiesc(varargin)
17 % Last Modified by GUIDE v2.5 04-Feb-2011 14:29:17
18 
19 % Begin initialization code - DO NOT EDIT
20 gui_Singleton = 1;
21 gui_State = struct('gui_Name', mfilename, ...
22  'gui_Singleton', gui_Singleton, ...
23  'gui_OpeningFcn', @blockuip_fsel_rmiesc_OpeningFcn, ...
24  'gui_OutputFcn', @blockuip_fsel_rmiesc_OutputFcn, ...
25  'gui_LayoutFcn', [] , ...
26  'gui_Callback', []);
27 if nargin && ischar(varargin{1})
28  gui_State.gui_Callback = str2func(varargin{1});
29 end
30 
31 if nargout
32  [varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});
33 else
34  gui_mainfcn(gui_State, varargin{:});
35 end
36 % End initialization code - DO NOT EDIT
37 
38 
39 % --- Executes just before blockuip_fsel_rmiesc is made visible.
40 function blockuip_fsel_rmiesc_OpeningFcn(hObject, eventdata, handles, varargin)
41 handles.output.flag_ok = 0;
42 guidata(hObject, handles);
43 gui_set_position(hObject);
44 
45 
46 % --- Outputs from this function are returned to the command clae.
47 function varargout = blockuip_fsel_rmiesc_OutputFcn(hObject, eventdata, handles)
48 try
49  uiwait(handles.figure1);
50  handles = guidata(hObject);
51  varargout{1} = handles.output;
52  delete(gcf);
53 catch
54  output.flag_ok = 0;
55  varargout{1} = output;
56 end;
57 
58 
59 
60 function editReg_Callback(hObject, eventdata, handles)
61 % hObject handle to editReg (see GCBO)
62 % eventdata reserved - to be defined in a future version of MATLAB
63 % handles structure with handles and user data (see GUIDATA)
64 
65 % Hints: get(hObject,'String') returns contents of editReg as text
66 % str2double(get(hObject,'String')) returns contents of editReg as a double
67 
68 
69 % --- Executes during object creation, after setting all properties.
70 function editReg_CreateFcn(hObject, eventdata, handles)
71 % hObject handle to editReg (see GCBO)
72 % eventdata reserved - to be defined in a future version of MATLAB
73 % handles empty - handles not created until after all CreateFcns called
74 
75 % Hint: edit controls usually have a white background on Windows.
76 % See ISPC and COMPUTER.
77 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
78  set(hObject,'BackgroundColor','white');
79 end
80 
81 
82 
83 % --- Executes on button press in pushbuttonOk.
84 function pushbuttonOk_Callback(hObject, eventdata, handles)
85 % hObject handle to pushbuttonOk (see GCBO)
86 % eventdata reserved - to be defined in a future version of MATLAB
87 % handles structure with handles and user data (see GUIDATA)
88 
89 handles.output.params = {...
90 'waveletname', ['''' fel(get(handles.popupmenuWaveletname, 'String')) ''''], ...
91 'no_levels', int2str(eval(get(handles.editNo_levels, 'String'))), ...
92 'thresholds', mat2str(eval(get(handles.editThresholds, 'String'))) ...
93 };
94 
95 handles.output.flag_ok = 1;
96 guidata(hObject, handles);
97 uiresume();
98 
99 
100 
101 function editHelp_Callback(hObject, eventdata, handles)
102 % hObject handle to editHelp (see GCBO)
103 % eventdata reserved - to be defined in a future version of MATLAB
104 % handles structure with handles and user data (see GUIDATA)
105 
106 % Hints: get(hObject,'String') returns contents of editHelp as text
107 % str2double(get(hObject,'String')) returns contents of editHelp as a double
108 
109 
110 % --- Executes during object creation, after setting all properties.
111 function editHelp_CreateFcn(hObject, eventdata, handles)
112 % hObject handle to editHelp (see GCBO)
113 % eventdata reserved - to be defined in a future version of MATLAB
114 % handles empty - handles not created until after all CreateFcns called
115 
116 % Hint: edit controls usually have a white background on Windows.
117 % See ISPC and COMPUTER.
118 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
119  set(hObject,'BackgroundColor','white');
120 end
121 
122 
123 
124 function editNo_levels_Callback(hObject, eventdata, handles)
125 % hObject handle to editNo_levels (see GCBO)
126 % eventdata reserved - to be defined in a future version of MATLAB
127 % handles structure with handles and user data (see GUIDATA)
128 
129 % Hints: get(hObject,'String') returns contents of editNo_levels as text
130 % str2double(get(hObject,'String')) returns contents of editNo_levels as a double
131 
132 
133 % --- Executes during object creation, after setting all properties.
134 function editNo_levels_CreateFcn(hObject, eventdata, handles)
135 % hObject handle to editNo_levels (see GCBO)
136 % eventdata reserved - to be defined in a future version of MATLAB
137 % handles empty - handles not created until after all CreateFcns called
138 
139 % Hint: edit controls usually have a white background on Windows.
140 % See ISPC and COMPUTER.
141 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
142  set(hObject,'BackgroundColor','white');
143 end
144 
145 
146 % --- Executes on selection change in popupmenuWaveletname.
147 function popupmenuWaveletname_Callback(hObject, eventdata, handles)
148 % hObject handle to popupmenuWaveletname (see GCBO)
149 % eventdata reserved - to be defined in a future version of MATLAB
150 % handles structure with handles and user data (see GUIDATA)
151 
152 % Hints: contents = get(hObject,'String') returns popupmenuWaveletname contents as cell array
153 % contents{get(hObject,'Value')} returns selected item from popupmenuWaveletname
154 
155 
156 % --- Executes during object creation, after setting all properties.
157 function popupmenuWaveletname_CreateFcn(hObject, eventdata, handles)
158 % hObject handle to popupmenuWaveletname (see GCBO)
159 % eventdata reserved - to be defined in a future version of MATLAB
160 % handles empty - handles not created until after all CreateFcns called
161 
162 % Hint: popupmenu controls usually have a white background on Windows.
163 % See ISPC and COMPUTER.
164 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
165  set(hObject,'BackgroundColor','white');
166 end
167 
168 
169 
170 function editThresholds_Callback(hObject, eventdata, handles)
171 % hObject handle to editThresholds (see GCBO)
172 % eventdata reserved - to be defined in a future version of MATLAB
173 % handles structure with handles and user data (see GUIDATA)
174 
175 % Hints: get(hObject,'String') returns contents of editThresholds as text
176 % str2double(get(hObject,'String')) returns contents of editThresholds as a double
177 
178 
179 % --- Executes during object creation, after setting all properties.
180 function editThresholds_CreateFcn(hObject, eventdata, handles)
181 % hObject handle to editThresholds (see GCBO)
182 % eventdata reserved - to be defined in a future version of MATLAB
183 % handles empty - handles not created until after all CreateFcns called
184 
185 % Hint: edit controls usually have a white background on Windows.
186 % See ISPC and COMPUTER.
187 if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
188  set(hObject,'BackgroundColor','white');
189 end
190 %> @endcond
Wavelet De-noising block.
Definition: pre_wden.m:24
Property thresholds
= [0 0 0 20 20 100] - given in the coarsest-to-finest order
Definition: pre_wden.m:36
Property no_levels
=6
Definition: pre_wden.m:33
function gui_set_position(in hObject)
Analysis Session (AS) base class.
Definition: as.m:6
Property waveletname
='haar'
Definition: pre_wden.m:30