Changeset 1137 for trunk/src/series
- Timestamp:
- Apr 24, 2024, 7:45:09 PM (5 months ago)
- Location:
- trunk/src/series
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r1127 r1137 81 81 set(handles.CheckThreshold,'Visible','on') 82 82 set(handles.CheckDeformation,'Value',0)% desactivate 83 set(handles.num_SubDomainSize(1),'String','250') 84 set(handles.num_SubDomainSize(2),'String','500') 83 85 end 84 86 switch Param.Action.ActionName -
trunk/src/series/civ_series.m
r1131 r1137 924 924 time_total=toc(tstart); 925 925 disp(['ellapsed time ' num2str(time_total/60,2) ' minutes']) 926 disp(['time image reading ' num2str(time_input /60,2) ' minutes'])927 disp(['time civ1 ' num2str(time_civ1 /60,2) ' minutes'])928 disp(['time patch1 ' num2str(time_patch1 /60,2) ' minutes'])929 disp(['time civ2 ' num2str(time_civ2 /60,2) ' minutes'])930 disp(['time patch2 ' num2str(time_patch2 /60,2) ' minutes'])931 disp(['time other ' num2str((time_total-time_input-time_civ1-time_patch1-time_civ2-time_patch2) /60,2) ' minutes'])926 disp(['time image reading ' num2str(time_input,2) ' s']) 927 disp(['time civ1 ' num2str(time_civ1,2) ' s']) 928 disp(['time patch1 ' num2str(time_patch1,2) ' s']) 929 disp(['time civ2 ' num2str(time_civ2,2) ' s']) 930 disp(['time patch2 ' num2str(time_patch2,2) ' s']) 931 disp(['time other ' num2str((time_total-time_input-time_civ1-time_patch1-time_civ2-time_patch2),2) ' s']) 932 932 end 933 933 end -
trunk/src/series/merge_proj.m
r1135 r1137 68 68 ParamOut.FieldTransform = 'on';%can use a transform function 69 69 %%%%% list of possible transform functions (needed only for compilation) 70 % ListTransform={'phys','phys_polar','sub_field'};%list of possible transform functions (needed only for compilation) 71 % if 0==1 %never satisfied but trigger compilation with the appropriate transform functions 72 % phys 73 % phys_polar 74 % sub_field 75 try 76 for ilist=1:numel(ListTransform) 77 eval(ListTransform{ilist}) 78 end 79 end 70 if 0==1 %never satisfied but trigger compilation with the appropriate transform functions ('eval' inactive for compilation) 71 phys 72 phys_polar 73 sub_field 74 end 80 75 81 76 ParamOut.TransformPath=fullfile(fileparts(which('uvmat')),'transform_field');% path to transform functions … … 192 187 currentdir=pwd; 193 188 cd(Param.FieldTransform.TransformPath) 189 if strcmp(Param.FieldTransform.TransformName,'sub_field') 190 checksub=2;% the two into field series will be subtracted 191 end 194 192 transform_fct=str2func(Param.FieldTransform.TransformName); 195 193 cd (currentdir) … … 199 197 end 200 198 end 201 checksub=nargin(transform_fct);% number of input arguments for the selected transform fct202 199 if checksub>2 && NbView>2 203 200 disp_uvmat('WARNING',['only the two first input file series will be combined by ' Param.FieldTransform.TransformName],checkrun) … … 321 318 322 319 %% transform the input field iview (e.g; phys) if requested (no transform involving two input fields at this stage) 323 checksub=0; 324 if ~isempty(transform_fct) 320 if ~isempty(transform_fct)&& checksub==0 325 321 checksub=nargin(transform_fct); 326 if checksub>=2322 if nargin(transform_fct)>=2 327 323 Data{iview}=transform_fct(Data{iview},XmlData{iview}); 328 else if checksub==1324 else 329 325 Data{iview}=transform_fct(Data{iview}); 330 326 end … … 356 352 357 353 %% merge the NbView fields 358 % if checksub<=2 354 if checksub==0 359 355 [MergeData,errormsg]=merge_field(Data);%concatene all the input field series by fct merge_data 360 % elseif checksub==3 361 %MergeData=transform_fct(Data{1},XmlData{1},Data{2}); %combine the two input file series362 %else363 %MergeData=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2});%combine the two input file series with calibration parameters364 %end356 else 357 MergeData=transform_fct(Data{1},XmlData{1},Data{2}); %combine the two input file series 358 % else 359 % MergeData=transform_fct(Data{1},XmlData{1},Data{2},XmlData{2});%combine the two input file series with calibration parameters 360 end 365 361 if ~isempty(errormsg) 366 362 disp_uvmat('ERROR',errormsg,checkrun);
Note: See TracChangeset
for help on using the changeset viewer.