Changeset 582 for trunk/src/uvmat.m
- Timestamp:
- Mar 13, 2013, 12:46:21 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r581 r582 1844 1844 num_i2=str2num(get(handles.i2,'String')); 1845 1845 num_j2=stra2num(get(handles.j2,'String')); 1846 imaname_1=''; 1846 1847 if isempty(num_j2) 1847 if isempty(num_i2) 1848 msgbox_uvmat('ERROR', 'a second image index i2 or j2 is needed to show the pair as a movie') 1849 set(handles.movie_pair,'BackgroundColor',[1 0 0])%paint the command button in red 1850 set(handles.movie_pair,'Value',0) 1851 return 1848 if isempty(num_i2) 1849 if strcmp(get(handles.j2,'Visible'),'on') %if the j box is visible 1850 imaname_1=fullfile_uvmat(RootPath,SubDir,RootFile,Ext,NomType,num_i1,[],num_j1+1); 1851 end 1852 if exist(imaname_1,'file') 1853 num_j2=num_j1+1; 1854 set(handles.j2,'String',num2str(num_j2)); 1855 else 1856 imaname_1=fullfile_uvmat(RootPath,SubDir,RootFile,Ext,NomType,num_i1+1,[],num_j1); 1857 if exist(imaname_1,'file') 1858 num_i2=num_i1+1; 1859 set(handles.i2,'String',num2str(num_i2)); 1860 else 1861 msgbox_uvmat('ERROR', 'a second image index i2 or j2 is needed to show the pair as a movie') 1862 set(handles.movie_pair,'BackgroundColor',[1 0 0])%paint the command button in red 1863 set(handles.movie_pair,'Value',0) 1864 return 1865 end 1866 end 1852 1867 else 1853 1868 num_j2=num_j1;%repeat the index i1 by default … … 3050 3065 %% fill the coordinates and variables from selections in get_field 3051 3066 if isequal(field,'get_field...') 3067 ParamIn=[]; 3052 3068 if strcmp(get(handles.VelType,'Visible'),'on') 3053 3069 % we use the civ choice as default input … … 3060 3076 ParamIn.vector_x='Civ1_U'; 3061 3077 ParamIn.vector_y='Civ1_V'; 3078 ParamIn.vec_color='Civ1_C'; 3062 3079 case 'filter1' 3063 3080 ParamIn.TimeVarName='Civ1_Time'; … … 3072 3089 ParamIn.vector_x='Civ2_U_smooth'; 3073 3090 ParamIn.vector_y='Civ2_V_smooth'; 3091 ParamIn.vec_color='Civ2_C'; 3074 3092 end 3075 3093 end
Note: See TracChangeset
for help on using the changeset viewer.