Changeset 1156 for trunk/src/series
- Timestamp:
- Jul 8, 2024, 11:03:33 PM (9 months ago)
- Location:
- trunk/src/series
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_3D.m
r1152 r1156 55 55 Data.Program=mfilename;%gives the name of the current function 56 56 Data.AllowInputSort='off';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default) 57 Data. WholeIndexRange_j='on';% prescribes the file index ranges j from min to max (options 'off'/'on', 'off' by default)57 Data.IndexRange_j='whole';% prescribes the file index ranges j from min to max (options 'off'/'on'/'whole', 'on' by default) 58 58 Data.NbSlice='off'; %nbre of slices ('off' by default) 59 59 Data.VelType='off';% menu for selecting the velocity type (options 'off'/'one'/'two', 'off' by default) -
trunk/src/series/civ_input.m
r1155 r1156 343 343 end 344 344 if strcmp(Param.Action.ActionName,'civ_3D') 345 PairIndex=1 345 PairIndex=1; 346 346 else 347 347 if isempty(PairIndex) … … 789 789 %------------------------------------------------------------------------ 790 790 %reproduce by default the chosen pair in the checkciv2 menu 791 list_pair=get(handles.ListPairCiv1,'String');%get the menu of image pairs 792 PairString=list_pair{get(handles.ListPairCiv1,'Value')}; 793 794 [ind1,ind2]=... 795 find_pair_indices(PairString); 796 hseries=findobj(allchild(0),'Tag','series'); 797 hhseries=guidata(hseries); 798 set(hhseries.num_first_j,'String',num2str(ind1)); 799 set(hhseries.num_last_j,'String',num2str(ind2)); 800 set(hhseries.num_incr_j,'String',num2str(ind2-ind1)); 801 set(handles.ListPairCiv2,'Value',get(handles.ListPairCiv1,'Value'))%civ2 selection the same as civ& by default 802 791 set(handles.ListPairCiv2,'Value',get(handles.ListPairCiv1,'Value'))%civ2 selection the same as civ1 by default 792 ListPairCiv2_Callback(hObject, eventdata, handles) 803 793 804 794 %------------------------------------------------------------------------ … … 806 796 function ListPairCiv2_Callback(hObject, eventdata, handles) 807 797 %------------------------------------------------------------------------ 808 809 798 810 799 %------------------------------------------------------------------------ -
trunk/src/series/civ_series.m
r1155 r1156 53 53 path_series=fileparts(which('series')); 54 54 addpath(fullfile(path_series,'series')) 55 56 57 55 Data=civ_input(Param);% introduce the civ parameters using the GUI civ_input 58 56 % TODO: change from guide to App: modify the input procedure, adapt read_GUI function … … 76 74 Data.CheckOverwriteVisible='on'; % manage the overwrite of existing files (default=1) 77 75 if isfield(Data,'ActionInput') && isfield(Data.ActionInput,'PairIndices') && strcmp(Data.ActionInput.PairIndices.ListPairMode,'pair j1-j2') 78 if isfield(Data.ActionInput.PairIndices,'ListPairCiv2') 79 str_civ=Data.ActionInput.PairIndices.ListPairCiv2; 80 else 81 str_civ=Data.ActionInput.PairIndices.ListPairCiv1; 82 end 83 r=regexp(str_civ,'^j= (?<num1>[a-z])-(?<num2>[a-z])','names'); 84 if isempty(r) 85 r=regexp(str_civ,'^j= (?<num1>[A-Z])-(?<num2>[A-Z])','names'); 86 if isempty(r) 87 r=regexp(str_civ,'^j= (?<num1>\d+)-(?<num2>\d+)','names'); 88 end 89 end 90 if ~isempty(r) 91 Data.j_index_1=stra2num(r.num1); 92 Data.j_index_2=stra2num(r.num2); 93 end 76 Data.IndexRange_j='off';%no j index display in series 77 % if isfield(Data.ActionInput.PairIndices,'ListPairCiv2') 78 % str_civ=Data.ActionInput.PairIndices.ListPairCiv2; 79 % else 80 % str_civ=Data.ActionInput.PairIndices.ListPairCiv1; 81 % end 82 % r=regexp(str_civ,'^j= (?<num1>[a-z])-(?<num2>[a-z])','names'); 83 % if isempty(r) 84 % r=regexp(str_civ,'^j= (?<num1>[A-Z])-(?<num2>[A-Z])','names'); 85 % if isempty(r) 86 % r=regexp(str_civ,'^j= (?<num1>\d+)-(?<num2>\d+)','names'); 87 % end 88 % end 89 % if ~isempty(r) 90 % Data.j_index_1=stra2num(r.num1); 91 % Data.j_index_2=stra2num(r.num2); 92 % end 93 else 94 Data.IndexRange_j='on';% j index display in series if relevant 94 95 end 95 96 return -
trunk/src/series/test_filter_tps.m
r1155 r1156 59 59 if isstruct(Param) && isequal(Param.Action.RUN,0) 60 60 ParamOut.AllowInputSort='off';% allow alphabetic sorting of the list of input file SubDir (options 'off'/'on', 'off' by default) 61 ParamOut.WholeIndexRange='o ff';% prescribes the file index ranges from min to max (options 'off'/'on', 'off' by default)61 ParamOut.WholeIndexRange='one';% prescribes the file index ranges from min to max (options 'off'/'on'/'one' (single input index), 'off' by default) 62 62 ParamOut.NbSlice='off'; % edit box nbre of slices made active 63 63 ParamOut.VelType='one';% menu for selecting the velocity type (options 'off'/'one'/'two', 'off' by default) … … 214 214 DataOut.ListGlobalAttribute={'Conventions','Program','CivStage','SubDomainSize','MaxDiff','CoordUnit','FieldSmooth'}; 215 215 DataOut.Conventions='uvmat/civdata';% states the conventions used for the description of field variables and attributes 216 if isfield(Param,'UvmatRevision') 216 217 DataOut.Program=['test_patch_tps, uvmat r' Param.UvmatRevision]; 218 else 219 DataOut.Program='test_patch_tps'; 220 end 217 221 DataOut.CivStage=CivStage;%update the current civStage after smoothing 218 222 DataOut.SubDomainSize=SubDomainSize; … … 287 291 time=toc 288 292 289 293 %plot rms difference and proportion of excluded vectors 290 294 figure(2) 291 295 cla 292 296 if CivStage==3% civ1 293 ref=0.2; %recommanded value for diff rms 297 ref=0.2; %recommanded value for diff rms 298 txt='civ1'; 294 299 else 295 300 ref=0.1; 301 txt='civ2'; 296 302 end 297 303 semilogx(FieldSmooth,DataOut.Diff_rms,'b+-',FieldSmooth,DataOut.NbExclude,'m+-',FieldSmooth,ref*ones(size(FieldSmooth)),'b--') 298 304 grid on 299 title( [filecell{1,1} ':' Param.InputFields.VelType])300 legend({'rms vel. diff. ' ;' ratio excluded vectors'; 'recommended diff'},'Location','northwest')305 title( [filecell{1,1} ':' txt]) 306 legend({'rms vel. diff. ' ;' ratio excluded vectors';['recommended diff for' txt]},'Location','northwest') 301 307 xlabel('smoothing parameter') 302 ylabel('rms (pixels) and exclusion ratio')303 OutputFig=fullfile(OutputPath,OutputDir,'plot_rms_diff.png') 308 ylabel('rms (pixels) and proportion of excluded vectors') 309 OutputFig=fullfile(OutputPath,OutputDir,'plot_rms_diff.png'); 304 310 saveas(2,OutputFig) 305 311
Note: See TracChangeset
for help on using the changeset viewer.