0001 function ltpdv_buildPreprocessPanel(panH, mainfig)
0002
0003 Gproperties = getappdata(mainfig, 'Gproperties');
0004
0005
0006 preFcns = {'delay';...
0007 'downsample'; ...
0008 'dsmean'; ...
0009 'firwhiten'; ...
0010 'interp'; ...
0011 'join'; ...
0012 'polyfit'; ...
0013 'resample'; ...
0014 'select'; ...
0015 'smoother'; ...
0016 'split'; ...
0017 'timeshift'; ...
0018 'upsample'};
0019
0020
0021 pmarg = 0.025;
0022 FONTSIZE = 12;
0023
0024
0025 ll = pmarg;
0026 lh = 0.05;
0027 lb = 1-pmarg-lh;
0028 lw = 0.3;
0029 sth = uicontrol(panH,'Style','text',...
0030 'String','Functions',...
0031 'Units', 'normalized', ...
0032 'BackgroundColor', Gproperties.Gcol, ...
0033 'Fontsize', 14, ...
0034 'Position',[ll lb lw lh]);
0035
0036
0037 pl = pmarg + 0.3 + pmarg;
0038 pb = 0.1;
0039 pw = 1-pl-pmarg;
0040 ph = 1 - pb - pmarg;
0041
0042 paramh = uipanel('Parent',panH,'Title','Parameters',...
0043 'Units', 'normalized', ...
0044 'BackgroundColor', 0.8*[0.87 0.92 0.99], ...
0045 'Fontsize', FONTSIZE, ...
0046 'Tag', 'LTPDVpreprocparampan', ...
0047 'Position',[pl pb pw ph]);
0048
0049
0050 ll = pmarg;
0051 lb = pmarg;
0052 lw = 0.3;
0053 lh = 1-2*pmarg - 0.05;
0054 lh = uicontrol(panH, 'Style', 'listbox', ...
0055 'String', preFcns,...
0056 'BackgroundColor', 'w', ...
0057 'Value',1, 'Units', 'normalized', ...
0058 'Fontsize', FONTSIZE, ...
0059 'Tag', 'LTPDVpreprocfcnlist', ...
0060 'Position',[ll lb lw lh], ...
0061 'Callback', {@ltpdv_preproc_fcnlist, paramh, mainfig});
0062
0063
0064 ltpdv_preproc_fcnlist(lh, paramh, mainfig);
0065
0066
0067 phght = 0.05;
0068 pbott = pmarg;
0069 pwidt = 0.2;
0070 pleft = 1-pmarg-pwidt;
0071 pbh = uicontrol(panH,'Style','pushbutton',...
0072 'String','Process',...
0073 'Callback', {@ltpdv_fcn_run, 'preproc', panH, mainfig}, ...
0074 'Units', 'normalized', ...
0075 'Position',[pleft pbott pwidt phght]);
0076
0077
0078
0079