Changeset 603 for trunk/src/series.m
- Timestamp:
- Apr 4, 2013, 12:08:47 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series.m
r602 r603 542 542 543 543 %% determine the selected reference field indices for pair display 544 ref_i=1; %default ref_i is a reference frame index used to find existing pairs from PIV 545 if ~isempty(i1) 546 ref_i=i1; 547 if ~isempty(i2)548 ref_i=floor((ref_i+i2)/2);% reference image number corresponding to the file549 550 end 544 if isempty(i1) 545 i1=1; 546 end 547 if isempty(i2) 548 i2=i1; 549 end 550 ref_i=floor((i1+i2)/2);% reference image number corresponding to the file 551 551 set(handles.num_ref_i,'String',num2str(ref_i)); 552 ref_j=1; %default ref_j is a reference frame index used to find existing pairs from PIV 553 if ~isempty(j1) 554 ref_j=j1; 555 if ~isempty(j2) 556 ref_j=floor((j1+j2)/2); 557 end 558 end 552 set(handles.num_ref_i,'UserData',[i1 i2]) 553 if isempty(j1) 554 j1=1; 555 end 556 if isempty(j2) 557 j2=j1; 558 end 559 ref_j=floor((j1+j2)/2);% reference image number corresponding to the file 559 560 set(handles.num_ref_j,'String',num2str(ref_j)); 561 set(handles.num_ref_j,'UserData',[j1 j2]) 560 562 561 563 %% update the list of recent files in the menubar and save it for future opening … … 793 795 %% update the series info in 'UserData' 794 796 SeriesData=get(handles.series,'UserData'); 797 SeriesData.Ref_i{iview}=get(handles.num_ref_i,'UserData'); 798 SeriesData.Ref_j{iview}=get(handles.num_ref_j,'UserData'); 795 799 SeriesData.i1_series{iview}=i1_series; 796 800 SeriesData.i2_series{iview}=i2_series; … … 2367 2371 commandwindow; %brings the Matlab command window to the front 2368 2372 2373 2374 % -------------------------------------------------------------------- 2375 function MenuImportConfig_Callback(hObject, eventdata, handles) 2376 % -------------------------------------------------------------------- 2377 InputTable=get(handles.InputTable,'Data'); 2378 [FileName, PathName] = uigetfile( ... 2379 {'*.xml', ' (*.xml)'; 2380 '*.xml', '.xml files '; ... 2381 '*.*', 'All Files (*.*)'}, ... 2382 'Pick a file',InputTable{1,1}); 2383 filexml=[PathName FileName];%complete file name 2384 if isempty(filexml),return;end %abandon if no file is introduced by the browser 2385 Param=xml2struct(filexml); 2386 fill_GUI(Param,handles.series) 2369 2387 2370 2388 % --- Executes on selection change in RunMode.
Note: See TracChangeset
for help on using the changeset viewer.