Changeset 592 for trunk/src/series/merge_proj.m
- Timestamp:
- Mar 25, 2013, 6:34:00 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/merge_proj.m
r585 r592 49 49 50 50 %% set the input elements needed on the GUI series when the action is selected in the menu ActionName 51 if ~exist('Param','var') % case with no input parameter 52 ParamOut={'AllowInputSort';'off';...% allow alphabetic sorting of the list of input files (options 'off'/'on', 'off' by default) 53 'WholeIndexRange';'off';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default) 54 'NbSlice';'on'; ...%nbre of slices ('off' by default) 55 'VelType';'one';...% menu for selecting the velocity type (options 'off'/'one'/'two', 'off' by default) 56 'FieldName';'one';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default) 57 'FieldTransform'; 'on';...%can use a transform function 58 'ProjObject';'on';...%can use projection object(option 'off'/'on', 59 'Mask';'off';...%can use mask option (option 'off'/'on', 'off' by default) 60 'OutputDirExt';'.mproj';...%set the output dir extension 61 ''}; 62 return 51 if isstruct(Param) && isequal(Param.Action.RUN,0) 52 ParamOut.AllowInputSort='off';...% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default) 53 ParamOut.WholeIndexRange='on';...% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default) 54 ParamOut.NbSlice='off'; ...%nbre of slices ('off' by default) 55 ParamOut.VelType='one';...% menu for selecting the velocity type (options 'off'/'one'/'two', 'off' by default) 56 ParamOut.FieldName='one';...% menu for selecting the field (s) in the input file(options 'off'/'one'/'two', 'off' by default) 57 ParamOut.FieldTransform = 'on';...%can use a transform function 58 ParamOut.ProjObject='on';...%can use projection object(option 'off'/'on', 59 ParamOut.Mask='off';...%can use mask option (option 'off'/'on', 'off' by default) 60 ParamOut.OutputDirExt='.mproj';%set the output dir extension 61 return 63 62 end 64 63 65 64 %%%%%%%%%%%% STANDARD PART (DO NOT EDIT) %%%%%%%%%%%% 66 %% select different modes, RUN, parameter input, BATCH67 % BATCH case: read the xml file for batch case 65 %% read input parameters from an xml file if input is a file name (batch mode) 66 checkrun=1; 68 67 if ischar(Param) 69 Param=xml2struct(Param); 70 checkrun=0; 71 % RUN case: parameters introduced as the input structure Param 72 else 73 hseries=guidata(Param.hseries);%handles of the GUI series 74 if isfield(Param,'Specific')&& strcmp(Param.Specific,'?') 75 checkrun=1;% will only search interactive input parameters (preparation of BATCH mode) 76 else 77 checkrun=2; % indicate the RUN option is used 78 end 79 end 68 Param=xml2struct(Param);% read Param as input file (batch case) 69 checkrun=0; 70 end 71 80 72 ParamOut=Param; %default output 81 73 if ~isfield(Param,'InputFields') 82 74 Param.InputFields.FieldName=''; 83 75 end 76 OutputSubDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files 84 77 85 78 %% root input file type … … 89 82 NomType=Param.InputTable(:,4); 90 83 FileExt=Param.InputTable(:,5); 91 OutputSubDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files92 84 [filecell,i1_series,i2_series,j1_series,j2_series]=get_file_series(Param); 93 85 %%%%%%%%%%%%
Note: See TracChangeset
for help on using the changeset viewer.