Changeset 374 for trunk/src/series/sub_background.m
- Timestamp:
- Jan 16, 2012, 12:51:23 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/sub_background.m
r240 r374 1 1 %'sub_background': substract background to an image series, used with series.fig 2 2 %------------------------------------------------------------------------ 3 % function GUI_input= aver_stat(num_i1,num_i2,num_j1,num_j2,Series)3 % function GUI_input=sub_background(Param) 4 4 % 5 5 %OUTPUT … … 32 32 % In the mode 'volume', nbfield2=1 (1 image at each level) 33 33 % 34 function GUI_input=sub_background ( num_i1,num_i2,num_j1,num_j2,Series)34 function GUI_input=sub_background (Param) 35 35 36 36 %------------------------------------------------------------------------ 37 37 %requests for the visibility of input windows in the GUI series (activated directly by the selection in the menu ACTION) 38 if ~exist(' num_i1','var')38 if ~exist('Param','var') 39 39 GUI_input={'RootPath';'on';... 40 40 'SubDir';'off';... % subdirectory of derived files (PIV fields), ('on' by default) … … 57 57 end 58 58 59 %---------------------------------------------------------------- 60 %% initiate the waitbar 61 hseries=guidata(Series.hseries);%handles of the GUI series 62 WaitbarPos=get(hseries.waitbar_frame,'Position'); 63 %----------------------------------------------------------------- 64 if iscell(Series.RootPath) 59 %% input parameters 60 % read the xml file for batch case 61 if ischar(Param) && ~isempty(find(regexp('Param','.xml$'))) 62 Param=xml2struct(Param); 63 else % RUN case: parameters introduced as the input structure Param 64 hseries=guidata(Param.hseries);%handles of the GUI series 65 WaitbarPos=get(hseries.waitbar_frame,'Position'); 66 end 67 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param); 68 if size(filecell,1)>1 65 69 msgbox_uvmat('ERROR','This function use only one input image series') 66 70 return 67 71 end 68 72 %%% TODO: update with the new conventions%%%%%%%%%%%%%%%%% 69 73 %% determine input image type 70 74 FileType=[];%default
Note: See TracChangeset
for help on using the changeset viewer.