Changeset 339 for trunk/src/uvmat.m
- Timestamp:
- Dec 19, 2011, 10:12:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r334 r339 474 474 end 475 475 % detect root name, nomenclature and indices in the input file name: 476 [ RootPath,SubDir,RootFile,i1,i2,j1,j2,FileExt]=fileparts_uvmat(fileinput);476 [~,SubDir,~,i1,i2,j1,j2,FileExt]=fileparts_uvmat(fileinput); 477 477 % detect the file type, get the movie object if relevant, and look for the corresponding file series: 478 [i1_series,i2_series,j1_series,j2_series,NomType,FileType,MovieObject]=find_file_series(fileinput);479 478 % [i1_series,i2_series,j1_series,j2_series,NomType,FileType,MovieObject]=find_file_series(fileinput); 479 [RootPath,RootFile,i1_series,i2_series,j1_series,j2_series,NomType,FileType,MovieObject]=find_file_series(fileinput); 480 480 % open the file or fill the GUI uvmat according to the detected file type 481 481 switch FileType … … 822 822 823 823 % set default options in menu 'Fields' 824 825 824 if ~testima 826 825 testcivx=0; … … 1909 1908 function movie_pair_Callback(hObject, eventdata, handles) 1910 1909 %------------------------------------------------------------------------ 1911 status=get(handles.movie_pair,'value'); 1912 if isequal(status,0) 1910 1911 %% stop movie action if the movie_pair button is off 1912 if ~get(handles.movie_pair,'value') 1913 1913 set(handles.movie_pair,'BusyAction','Cancel')%stop movie pair if button is 'off' 1914 1914 set(handles.i2,'String','') … … 1918 1918 set(handles.movie_pair,'BusyAction','queue') 1919 1919 end 1920 %initialisation 1920 1921 %% initialisation 1921 1922 set(handles.movie_pair,'BackgroundColor',[1 1 0])%paint the command button in yellow 1922 1923 drawnow … … 1929 1930 [ff,rr,filebase,xx,Ext,SubDir]=read_file_boxes(handles); 1930 1931 NomType=get(handles.NomType,'String'); 1931 % NomType=get(handles.FileIndex,'UserData');1932 1932 else 1933 1933 list_fields=get(handles.Fields_1,'String');% list menu fields … … 1969 1969 end 1970 1970 1971 % read the second image1971 %% read the second image 1972 1972 Field.AName='image'; 1973 1973 if test_1 … … 1984 1984 end 1985 1985 Field_b.CoordUnit='pixel'; 1986 %determine the input file type 1986 1987 %% determine the input file type 1987 1988 if (test_1 && isfield(UvData,'MovieObject_1'))||(~test_1 && isfield(UvData,'MovieObject')) 1988 1989 FileType='movie';
Note: See TracChangeset
for help on using the changeset viewer.