Changeset 386 for trunk/src/uvmat.m


Ignore:
Timestamp:
Apr 2, 2012, 4:23:26 PM (9 years ago)
Author:
sommeria
Message:

several bugs corrected
for dealing with color movies

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r384 r386  
    4747%           .FieldName_1:(char string) second field selected('image', 'velocity'...)
    4848%           .CName: (char string)name of the scalar used for vector colors
    49 %          .MovieObject: movie object representing an input movie
    50 %          .MovieObject_1: idem for a second input series (_1)
     49%          .MovieObject{1}: movie object representing an input movie
     50%          .MovieObject{2}: idem for a second input series (_1)
    5151%          .filename_1 : last second input file name (to deal with a constant second input without reading again the file)
    5252%          .VelType_1: last velocity type (VelType, civ2...) for the second input series
     
    15681568NomType=get(handles.NomType,'String');
    15691569i1=str2num(get(handles.i1,'String'));%read the field indices (for movie, it is not given by the file name)
    1570 i2=str2num(get(handles.i2,'String'));
    1571 j1=1;
     1570i2=[];%default
     1571if strcmp(get(handles.i2,'Visible'),'on')
     1572    i2=str2num(get(handles.i2,'String'));
     1573end
     1574j1=[];
    15721575if strcmp(get(handles.j1,'Visible'),'on')
    15731576    j1=stra2num(get(handles.j1,'String'));
     
    15921595    set(handles.CheckFixPair,'Value',0)
    15931596end
    1594 CheckFixPair=get(handles.CheckFixPair,'Value');
     1597CheckFixPair=get(handles.CheckFixPair,'Value')||(isempty(i2)&&isempty(j2));
    15951598if CheckFixPair
    15961599    if get(handles.scan_i,'Value')==1% case of scanning along index i
     
    20002003                ParamIn.Npy=UvData.XmlData.Npy;
    20012004                ParamIn.Npx=UvData.XmlData.Npx;
    2002             else
    2003                
     2005            else           
    20042006                errormsg='Npx and Npy need to be defined in the xml file for volume images .vol';
    20052007                return
Note: See TracChangeset for help on using the changeset viewer.