Ignore:
Timestamp:
Oct 16, 2010, 5:56:00 PM (14 years ago)
Author:
sommeria
Message:

geometry_calib is now updated when a new image is viewed by uvmat
imadoc2struct corrected for time reading

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/imadoc2struct.m

    r114 r116  
    217217        if strcmp(option,'GeometryCalib')
    218218            tsai.PointCoord=get_value(subt,'/GeometryCalib/SourceCalib/PointCoord',[0 0 0 0 0]);%time in TimeUnit
     219            size(tsai.PointCoord)
    219220        end
    220221        s.GeometryCalib=tsai;
     
    228229val=default;
    229230uid=find(t,label);%find the element iud(s)
    230 if ~isempty(uid)
    231    uid_child=children(t,uid);
     231if ~isempty(uid) %if the element named label exists
     232   uid_child=children(t,uid);%find the children
    232233   if ~isempty(uid_child)
    233        data=get(t,uid_child,'type');
    234        if iscell(data)
     234       data=get(t,uid_child,'type');%get the type of child
     235       if iscell(data)% case of multiple element
    235236           for icell=1:numel(data)
    236237               val_read=str2num(get(t,uid_child(icell),'value'));
     
    239240               end
    240241           end
    241            val=val';
    242        else
     242%           val=val';
     243       else % case of unique element value
    243244           val_read=str2num(get(t,uid_child,'value'));
    244245           if ~isempty(val_read)
Note: See TracChangeset for help on using the changeset viewer.