Changeset 474 for trunk/src/series/sub_background.m
- Timestamp:
- Jun 25, 2012, 12:14:16 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/sub_background.m
r462 r474 38 38 % each line decomposed as {RootPath,SubDir,Rootfile,NomType,Extension} 39 39 % .OutputSubDir: name of the subdirectory for data outputs 40 % .OutputDir : directory for data outputs, including path40 % .OutputDirExt: extension for the directory for data outputs 41 41 % .Action: .ActionName: name of the current activated function 42 42 % .ActionPath: path of the current activated function … … 58 58 %% set the input elements needed on the GUI series when the action is selected in the menu ActionName 59 59 if ~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) 62 61 'WholeIndexRange';'on';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default) 63 62 'NbSlice';'on'; ...%nbre of slices ('off' by default) … … 89 88 end 90 89 ParamOut=Param; %default output 90 OutputDir=[Param.OutputSubDir Param.OutputDirExt]; 91 91 92 92 %% root input file(s) and type … … 96 96 NomType=Param.InputTable(:,4); 97 97 FileExt=Param.InputTable(:,5); 98 99 % get the set of input file names (cell array filecell), and the lists of100 % input file or frame indices i1_series,i2_series,j1_series,j2_series101 98 [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}: 103 102 % iview: line in the table corresponding to a given file series 104 103 % fileindex: file index within the file series, 105 104 % 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 106 105 % 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 %%%%%%%%%%%% 110 107 NbSlice=1;%default 111 108 if isfield(Param.IndexRange,'NbSlice')&&~isempty(Param.IndexRange.NbSlice) … … 340 337 j1=j1_series{1}(ifile); 341 338 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); 343 340 344 341 %write result file … … 390 387 j1=j1_series{1}(ifile); 391 388 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); 393 390 %write result file 394 391 if ParamOut.Specific.CheckLevelTransform … … 424 421 j1=j1_series{1}(ifile); 425 422 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); 427 424 428 425 %write result file
Note: See TracChangeset
for help on using the changeset viewer.