Ignore:
Timestamp:
Jun 11, 2012, 9:35:38 AM (12 years ago)
Author:
sommeria
Message:

aver_stat modified in the new rationalized form.
OTHER series FCTS NOT OPERATIONAL

File:
1 edited

Legend:

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

    r442 r447  
    4343        'NomType';'on';...%type of file indexing ('on' by default)
    4444        'NbSlice';'on'; ...%nbre of slices ('off' by default)
     45        'OutputDirExt';'.sbk';...
    4546        %'VelTypeMenu';'on';...% menu for selecting the velocity type (civ1,..)('off' by default)
    4647        %'FieldMenu';'on';...% menu for selecting the velocity field (s) in the input file ('off' by default)
     
    7071dir_images=Param.InputTable{1,1};
    7172NomType=Param.InputTable{1,4};
     73SubDir=Param.InputTable{1,2};
    7274FileExt=Param.InputTable{1,5};
    73 [filecell,i1_series,tild,j1_series]=get_file_series(Param);%generates the set
    74 of input file names
     75[filecell,i1_series,tild,j1_series]=get_file_series(Param);%generates the set of input file names
    7576if size(filecell,1)>1
    7677    msgbox_uvmat('WARNING','This function uses only the first input image series')
     
    211212%% update the xml file
    212213SubDirBase=regexprep(Param.InputTable{1,2},'\..*','');%take the root part of SubDir, before the first dot '.'
    213 filexml=fulfille(Param.InputTable{1,1},[SubDirBase '.xml']);
     214filexml=fullfile(Param.InputTable{1,1},[SubDirBase '.xml']);
    214215if ~exist(filexml,'file') && exist([filebase '.xml'],'file')% xml inside the image directory
    215216    copyfile([filebase '.xml'],filexml);% copy the .xml file
    216217end
    217218if exist(filexml,'file')
    218     t=xmltree([filexml '.xml']); 
     219    t=xmltree(filexml); 
    219220    %update information on the first image name in the series
    220221    uid_Heading=find(t,'ImaDoc/Heading');
     
    306307            if checkrun
    307308                stopstate=get(hseries.RUN,'BusyAction');
    308                 update_waitbar(hseries.waitbar,WaitbarPos,(ifield+(islice-1)*nbfield_slice)/(nbfield_slice*nbslice_i))
    309                 display((ifield+(islice-1)*nbfield_slice)/(nbfield_slice*nbslice_i))
     309                update_waitbar(hseries.waitbar_frame,WaitbarPos,(ifield+(islice-1)*nbfield_slice)/(nbfield_slice*nbslice_i))
    310310            else
    311311                stopstate='queue';
     
    316316                for iburst=1:step
    317317                    ifile=indselect(ifield+step*floor(nbaver/2)+iburst-1);
    318                     filename=fullfile_uvmat(Param.InputTable{1,1},Subdir,Param.InputTable{1,3},FileExt,NomType,num_i1(ifile),[],num_j1(ifile));
     318                    filename=fullfile_uvmat(Param.InputTable{1,1},SubDir,Param.InputTable{1,3},FileExt,NomType,i1_series{1}(ifile),[],j1_series{1}(ifile));
    319319                    %filename=name_generator(filebase,num_i1(ifile),num_j1(ifile),FileExt,NomType);
    320                     Aread=read_image(filename,FileType,num_i1(ifile),MovieObject);
     320                    Aread=read_image(filename,FileType,i1_series{1}(ifile),MovieObject);
    321321                    Ak(:,:,nbaver_ima-step+iburst)=Aread;
    322322                end
Note: See TracChangeset for help on using the changeset viewer.