Ignore:
Timestamp:
Jan 16, 2012, 12:51:23 AM (12 years ago)
Author:
sommeria
Message:

fgunctions under series adapted to the renovated GUI series

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/sub_background.m

    r240 r374  
    11%'sub_background': substract background to an image series, used with series.fig
    22%------------------------------------------------------------------------
    3 % function GUI_input=aver_stat(num_i1,num_i2,num_j1,num_j2,Series)
     3% function GUI_input=sub_background(Param)
    44%
    55%OUTPUT
     
    3232    % In the mode 'volume', nbfield2=1 (1 image at each level)
    3333%
    34 function GUI_input=sub_background (num_i1,num_i2,num_j1,num_j2,Series)
     34function GUI_input=sub_background (Param)
    3535
    3636%------------------------------------------------------------------------
    3737%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')
     38if ~exist('Param','var')
    3939    GUI_input={'RootPath';'on';...
    4040        'SubDir';'off';... % subdirectory of derived files (PIV fields), ('on' by default)
     
    5757end
    5858
    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
     61if ischar(Param) && ~isempty(find(regexp('Param','.xml$')))
     62    Param=xml2struct(Param);
     63else %  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');
     66end
     67[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
     68if size(filecell,1)>1
    6569    msgbox_uvmat('ERROR','This function use only one input image series')
    6670    return
    6771end
    68 
     72%%% TODO: update with the new conventions%%%%%%%%%%%%%%%%%
    6973%% determine input image type
    7074FileType=[];%default
Note: See TracChangeset for help on using the changeset viewer.