Changeset 339 for trunk/src/uvmat.m


Ignore:
Timestamp:
Dec 19, 2011, 10:12:56 AM (9 years ago)
Author:
sommeria
Message:

name2display replaced by fileparts_uvmat and find_file_series in series.
name2display partially replaced in civ.m (to be continued)
series.fig reorganized with panels.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r334 r339  
    474474end
    475475% 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);
    477477% 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);
    480480% open the file or fill the GUI uvmat according to the detected file type
    481481switch FileType
     
    822822
    823823% set default options in menu 'Fields'
    824 
    825824if ~testima
    826825    testcivx=0;
     
    19091908function movie_pair_Callback(hObject, eventdata, handles)
    19101909%------------------------------------------------------------------------
    1911 status=get(handles.movie_pair,'value');
    1912 if isequal(status,0)
     1910
     1911%% stop movie action if the movie_pair button is off
     1912if ~get(handles.movie_pair,'value')
    19131913    set(handles.movie_pair,'BusyAction','Cancel')%stop movie pair if button is 'off'
    19141914    set(handles.i2,'String','')
     
    19181918    set(handles.movie_pair,'BusyAction','queue')
    19191919end
    1920 %initialisation
     1920
     1921%% initialisation
    19211922set(handles.movie_pair,'BackgroundColor',[1 1 0])%paint the command button in yellow
    19221923drawnow
     
    19291930    [ff,rr,filebase,xx,Ext,SubDir]=read_file_boxes(handles);
    19301931    NomType=get(handles.NomType,'String');
    1931 %     NomType=get(handles.FileIndex,'UserData');
    19321932else
    19331933    list_fields=get(handles.Fields_1,'String');% list menu fields
     
    19691969end
    19701970
    1971 %read the second image
     1971%% read the second image
    19721972Field.AName='image';
    19731973if test_1
     
    19841984end
    19851985Field_b.CoordUnit='pixel';
    1986 %determine the input file type
     1986
     1987%% determine the input file type
    19871988if (test_1 && isfield(UvData,'MovieObject_1'))||(~test_1 && isfield(UvData,'MovieObject'))
    19881989    FileType='movie';
Note: See TracChangeset for help on using the changeset viewer.