Ignore:
Timestamp:
Jun 25, 2012, 12:14:16 AM (12 years ago)
Author:
sommeria
Message:

functions adpated to mode background

File:
1 edited

Legend:

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

    r462 r474  
    3838%                      each line decomposed as {RootPath,SubDir,Rootfile,NomType,Extension}
    3939%    .OutputSubDir: name of the subdirectory for data outputs
    40 %    .OutputDir: directory for data outputs, including path
     40%    .OutputDirExt: extension for the directory for data outputs
    4141%    .Action: .ActionName: name of the current activated function
    4242%             .ActionPath:   path of the current activated function
     
    5858%% set the input elements needed on the GUI series when the action is selected in the menu ActionName
    5959if ~exist('Param','var') % case with no input parameter
    60     ParamOut={'NbViewMax';1;...% max nbre of input file series (default='' , no limitation)
    61         'AllowInputSort';'off';...% allow alphabetic sorting of the list of input files (options 'off'/'on', 'off' by default)
     60    ParamOut={'AllowInputSort';'off';...% allow alphabetic sorting of the list of input files (options 'off'/'on', 'off' by default)
    6261        'WholeIndexRange';'on';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default)
    6362        'NbSlice';'on'; ...%nbre of slices ('off' by default)
     
    8988end
    9089ParamOut=Param; %default output
     90OutputDir=[Param.OutputSubDir Param.OutputDirExt];
    9191
    9292%% root input file(s) and type
     
    9696NomType=Param.InputTable(:,4);
    9797FileExt=Param.InputTable(:,5);
    98 
    99 % get the set of input file names (cell array filecell), and the lists of
    100 % input file or frame indices i1_series,i2_series,j1_series,j2_series
    10198[filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param);
    102 % filecell{iview,fileindex}: cell array representing the list of file names
     99%%%%%%%%%%%%
     100% The cell array filecell is the list of input file names, while
     101% filecell{iview,fileindex}:
    103102%        iview: line in the table corresponding to a given file series
    104103%        fileindex: file index within  the file series,
    105104% i1_series(iview,ref_j,ref_i)... are the corresponding arrays of indices i1,i2,j1,j2, depending on the input line iview and the two reference indices ref_i,ref_j
    106105% i1_series(iview,fileindex) expresses the same indices as a 1D array in file indices
    107 % set of frame indices used for movie or multimage input
    108 % numbers of slices and file indices
    109 
     106%%%%%%%%%%%%
    110107NbSlice=1;%default
    111108if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice)
     
    340337            j1=j1_series{1}(ifile);
    341338        end
    342         newname=fullfile_uvmat(RootPath{1},Param.OutputSubDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1);
     339        newname=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1);
    343340       
    344341        %write result file
     
    390387                        j1=j1_series{1}(ifile);
    391388                    end
    392                     newname=fullfile_uvmat(RootPath{1},Param.OutputSubDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1);
     389                    newname=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1);
    393390                    %write result file
    394391                    if ParamOut.Specific.CheckLevelTransform
     
    424421            j1=j1_series{1}(ifile);
    425422        end
    426         newname=fullfile_uvmat(RootPath{1},Param.OutputSubDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1);
     423        newname=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,i1_series{1}(ifile),[],j1);
    427424       
    428425        %write result file
Note: See TracChangeset for help on using the changeset viewer.