Changeset 180 for trunk/src/civ.m
- Timestamp:
- Jan 18, 2011, 10:50:40 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r179 r180 1598 1598 box_test(5)=get(handles.FIX2,'Value'); 1599 1599 box_test(6)=get(handles.PATCH2,'Value'); 1600 index =find(box_test==1);1601 if isempty(index )1600 index_first=find(box_test==1,1); 1601 if isempty(index_first) 1602 1602 msgbox_uvmat('ERROR','no selected operation') 1603 1603 return 1604 1604 end 1605 index_first=min(index); 1606 index_last=max(index); 1605 index_last=find(box_test==1,1,'last'); 1607 1606 box_used=box_test(index_first : index_last); 1608 1607 [box_missing,ind_missing]=min(box_used); 1609 if isequal(box_missing,0) 1608 if isequal(box_missing,0); %there is a missing step in the sequence of operations 1610 1609 msgbox_uvmat('ERROR',['missing' cell2mat(operations(ind_missing))]); 1611 1610 return … … 1640 1639 %% reinitialise status callback 1641 1640 if isfield(handles,'status') 1642 set(handles.status,'Value',0);%suppress status display1643 status_Callback(hObject, eventdata, handles)1641 set(handles.status,'Value',0);%suppress status display 1642 status_Callback(hObject, eventdata, handles) 1644 1643 end 1645 1644 1646 1645 %% set the list of files and check them 1647 1646 display('checking the files...') 1648 %compare=get(handles.compare,'Value');%test for usual PIV (compare=1) or displacement (=2) or stereo PIV (=3)1649 1647 [filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc]=... 1650 1648 set_civ_filenames(handles,box_test); … … 4623 4621 box_test(4)=get(handles.CIV2,'Value'); 4624 4622 box_test(5)=get(handles.FIX2,'Value'); 4625 box_test(6)=get(handles.PATCH2,'Value') 4626 find(box_test) 4627 option_civ=max(find(box_test)) 4623 box_test(6)=get(handles.PATCH2,'Value'); 4624 option_civ=find(box_test,1,'last');%last selected option (non-zero index of box_test) 4628 4625 filecell=get(handles.civ,'UserData'); 4629 4626 if ~isfield(filecell,'nc')
Note: See TracChangeset
for help on using the changeset viewer.