Changeset 1024 for trunk/src/uvmat.m


Ignore:
Timestamp:
Dec 24, 2017, 9:50:18 AM (6 years ago)
Author:
sommeria
Message:

pb for reading images repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r1023 r1024  
    33333333        end
    33343334    case {'video','mmreader','rdvision','cine_phantom'}
     3335        FieldName='image';
    33353336        ParamIn=UvData.MovieObject{1}; % movie object
    33363337        if strcmp(NomType,'*')
     
    33403341        end
    33413342    case 'multimage'
     3343        FieldName='image';
    33423344        if ~strcmp(NomType,'*')
    33433345            MaxIndex_j_cell=get(handles.MaxIndex_j,'String');
     
    33653367            return
    33663368        end
     3369    case 'image'
     3370        FieldName='image';     
    33673371end
    33683372if isstruct (ParamIn)
     
    33723376    ParamIn.Coord_y=get(handles.Coord_y,'String');
    33733377    ParamIn.Coord_z=get(handles.Coord_z,'String');
    3374     ParamIn.CheckCoordIndex=strcmp(get(handles.SwitchCoordIndex,'String'),'dim');
     3378    %ParamIn.CheckCoordIndex=strcmp(get(handles.SwitchCoordIndex,'String'),'dim');
    33753379    TimeName=get(handles.TimeName,'String');
    33763380    r=regexp(TimeName,'^(?<type>(dim:)|(var:))','names');%look for 'var:' or 'dim:' at the beginning of time name
     
    34213425                FieldName_1=FieldName;% if blank reproduce the field name of the first field
    34223426            end
    3423             if ~isempty(regexp(FieldName_1,'^vel'))&& strcmp(get(handles.ColorCode,'Visible'),'on')
     3427            if ~isempty(regexp(FieldName_1,'^vel', 'once'))&& strcmp(get(handles.ColorCode,'Visible'),'on')
    34243428                list_code=get(handles.ColorCode,'String');% list menu fields
    34253429                index_code=get(handles.ColorCode,'Value');% selected string index
     
    35963600            TimeUnit='';
    35973601        end
    3598     elseif  ~isempty(regexp(TimeName,'^var:'))
     3602    elseif  ~isempty(regexp(TimeName,'^var:', 'once'))
    35993603        abstime=Field{1}.(TimeName(5:end));%the time is a variale selected by get_file
    36003604        % TODO: look for time unit attribute
     
    44494453            if isfield(GetFieldData,'Coordinates')
    44504454                XName=GetFieldData.Coordinates.Coord_x;
    4451                 set(handles.SwitchCoordIndex,'String','var'); % variable used as coordinate
    4452             else
    4453                 set(handles.SwitchCoordIndex,'String','dim'); % matrix index used a coordinate
     4455%                set(handles.SwitchCoordIndex,'String','var'); % variable used as coordinate
     4456%             else
     4457%                 set(handles.SwitchCoordIndex,'String','dim'); % matrix index used a coordinate
    44544458            end
    44554459            TimeNameStr=GetFieldData.Time.SwitchVarIndexTime;
Note: See TracChangeset for help on using the changeset viewer.