Changeset 150 for trunk/src/civ.m
- Timestamp:
- Dec 3, 2010, 12:16:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r147 r150 22 22 function varargout = civ(varargin) 23 23 24 % Last Modified by GUIDE v2.5 27-Mar-2010 13:41:1124 % Last Modified by GUIDE v2.5 01-Dec-2010 23:19:15 25 25 % Begin initialization code - DO NOT EDIT 26 26 gui_Singleton = 1; … … 225 225 end 226 226 227 set(handles.waitbar_1,'Position',[0.946 0.877 0.03 0.001])228 set(handles.waitbar_patch1,'Position',[0.946 0.626 0.03 0.001])229 set(handles.waitbar_civ2,'Position',[0.946 0.406 0.03 0.001])230 set(handles.waitbar_patch2,'Position',[0.946 0.187 0.03 0.001])227 % set(handles.waitbar_1,'Position',[0.946 0.877 0.03 0.001]) 228 % set(handles.waitbar_patch1,'Position',[0.946 0.626 0.03 0.001]) 229 % set(handles.waitbar_civ2,'Position',[0.946 0.406 0.03 0.001]) 230 % set(handles.waitbar_patch2,'Position',[0.946 0.187 0.03 0.001]) 231 231 232 232 %------------------------------------------------------------------------ … … 772 772 773 773 %%%%%% initialize waitbars and RUN button 774 set(handles.waitbar_1,'Position',[0.946 0.876 0.03 0.001])775 set(handles.waitbar_patch1,'Position',[0.946 0.439 0.03 0.001])776 set(handles.waitbar_civ2,'Position',[0.946 0.219 0.03 0.001])777 set(handles.waitbar_patch2,'Position',[0.946 0.0 0.03 0.001])774 % set(handles.waitbar_1,'Position',[0.946 0.876 0.03 0.001]) 775 % set(handles.waitbar_patch1,'Position',[0.946 0.439 0.03 0.001]) 776 % set(handles.waitbar_civ2,'Position',[0.946 0.219 0.03 0.001]) 777 % set(handles.waitbar_patch2,'Position',[0.946 0.0 0.03 0.001]) 778 778 set(handles.RUN, 'Enable','On') 779 779 set(handles.RUN,'BackgroundColor',[1 0 0]) … … 1623 1623 1624 1624 %% initialize the waitbars: TO suppress, waitbar not used 1625 set(handles.waitbar_1,'Position',[0.946 0.876 0.03 0.001])1626 set(handles.waitbar_patch1,'Position',[0.946 0.439 0.03 0.001])1627 set(handles.waitbar_civ2,'Position',[0.946 0.219 0.03 0.001])1628 set(handles.waitbar_patch2,'Position',[0.946 0.0 0.03 0.001])1629 drawnow1625 % set(handles.waitbar_1,'Position',[0.946 0.876 0.03 0.001]) 1626 % set(handles.waitbar_patch1,'Position',[0.946 0.439 0.03 0.001]) 1627 % set(handles.waitbar_civ2,'Position',[0.946 0.219 0.03 0.001]) 1628 % set(handles.waitbar_patch2,'Position',[0.946 0.0 0.03 0.001]) 1629 % drawnow 1630 1630 1631 1631 %% set the list of files and check them 1632 1632 display('checking the files...') 1633 compare=get(handles.compare,'Value');%test for usual PIV (compare=1) or displacement (=2) or stereo PIV (=3)1633 %compare=get(handles.compare,'Value');%test for usual PIV (compare=1) or displacement (=2) or stereo PIV (=3) 1634 1634 [filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc]=... 1635 set_civ_filenames(handles, compare,box_test);1635 set_civ_filenames(handles,box_test); 1636 1636 if isempty(filecell)% (error message displayed in fct set_civ_filenames) 1637 1637 return … … 2276 2276 2277 2277 function [filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc,file_ref_fix1,file_ref_fix2]=... 2278 set_civ_filenames(handles, compare,box_test)2278 set_civ_filenames(handles,box_test) 2279 2279 %------------------------------------------------------------------------ 2280 2280 filecell=[];%default … … 3956 3956 par.pxcmx='1'; %velocities are expressed in pixel dispalcement 3957 3957 par.pxcmy='1'; 3958 % end 3958 if exist('file_ima','var') 3959 3959 A=imread(file_ima);%read the first image to get the size 3960 3960 sizim=size(A); 3961 3961 par.npx=num2str(sizim(2)); 3962 3962 par.npy=num2str(sizim(1)); 3963 end 3963 3964 %time=get(handles.RootName,'UserData'); %get the set of times 3964 3965 par.gridname=get(handles.grid_civ1,'String'); … … 4595 4596 4596 4597 4597 4598 4598 % --- Executes on button press in TestCiv1. 4599 function TestCiv1_Callback(hObject, eventdata, handles) 4600 test_civ1=get(handles.TestCiv1,'Value'); 4601 if test_civ1 4602 [filecell,num1_civ1,num2_civ1,num_a_civ1,num_b_civ1,num1_civ2,num2_civ2,num_a_civ2,num_b_civ2,nom_type_nc,file_ref_fix1,file_ref_fix2]=... 4603 set_civ_filenames(handles,[1 0 0 0 0 0]); 4604 Data.ListVarName={'ny','nx','A'}; 4605 Data.VarDimName={'ny','nx',{'ny','nx'}}; 4606 Data.A=imread(filecell.ima1.civ1{1}); 4607 Data.ny=[size(Data.A,1) 1]; 4608 Data.nx=[1 size(Data.A,2)]; 4609 hh=view_field(Data); 4610 ViewData=get(hh,'UserData'); 4611 ViewData.axes3.B=imread(filecell.ima2.civ1{1}); 4612 set(hh,'UserData',ViewData) 4613 end 4614 4615 4616 4617 4618 4619
Note: See TracChangeset
for help on using the changeset viewer.