Changeset 1024 for trunk/src/uvmat.m
- Timestamp:
- Dec 24, 2017, 9:50:18 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/uvmat.m
r1023 r1024 3333 3333 end 3334 3334 case {'video','mmreader','rdvision','cine_phantom'} 3335 FieldName='image'; 3335 3336 ParamIn=UvData.MovieObject{1}; % movie object 3336 3337 if strcmp(NomType,'*') … … 3340 3341 end 3341 3342 case 'multimage' 3343 FieldName='image'; 3342 3344 if ~strcmp(NomType,'*') 3343 3345 MaxIndex_j_cell=get(handles.MaxIndex_j,'String'); … … 3365 3367 return 3366 3368 end 3369 case 'image' 3370 FieldName='image'; 3367 3371 end 3368 3372 if isstruct (ParamIn) … … 3372 3376 ParamIn.Coord_y=get(handles.Coord_y,'String'); 3373 3377 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'); 3375 3379 TimeName=get(handles.TimeName,'String'); 3376 3380 r=regexp(TimeName,'^(?<type>(dim:)|(var:))','names');%look for 'var:' or 'dim:' at the beginning of time name … … 3421 3425 FieldName_1=FieldName;% if blank reproduce the field name of the first field 3422 3426 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') 3424 3428 list_code=get(handles.ColorCode,'String');% list menu fields 3425 3429 index_code=get(handles.ColorCode,'Value');% selected string index … … 3596 3600 TimeUnit=''; 3597 3601 end 3598 elseif ~isempty(regexp(TimeName,'^var:' ))3602 elseif ~isempty(regexp(TimeName,'^var:', 'once')) 3599 3603 abstime=Field{1}.(TimeName(5:end));%the time is a variale selected by get_file 3600 3604 % TODO: look for time unit attribute … … 4449 4453 if isfield(GetFieldData,'Coordinates') 4450 4454 XName=GetFieldData.Coordinates.Coord_x; 4451 set(handles.SwitchCoordIndex,'String','var'); % variable used as coordinate4452 else4453 set(handles.SwitchCoordIndex,'String','dim'); % matrix index used a coordinate4455 % set(handles.SwitchCoordIndex,'String','var'); % variable used as coordinate 4456 % else 4457 % set(handles.SwitchCoordIndex,'String','dim'); % matrix index used a coordinate 4454 4458 end 4455 4459 TimeNameStr=GetFieldData.Time.SwitchVarIndexTime;
Note: See TracChangeset
for help on using the changeset viewer.