Ignore:
Timestamp:
Jun 23, 2024, 10:00:16 PM (4 months ago)
Author:
sommeria
Message:

extract_rdvision improved by automatic production of the xml file from timestamps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/imadoc2struct.m

    r1127 r1149  
    3737errormsg='';%default
    3838s=[];
    39 % s.Heading=[];%default
    40 % s.Time=[]; %default
    41 % s.TimeUnit=[]; %default
    42 % s.GeometryCalib=[];
    43 % tsai=[];%default
    4439
    4540%% opening the xml file
     
    7267        s.TimeUnit=s.Camera.TimeUnit;
    7368    end
     69    if ~isfield(s.Camera,'FirstFrameIndexI')
     70        s.Camera.FirstFrameIndexI=1; %first index assumed equl to 1 by default
     71    end
    7472    Timing=s.Camera.BurstTiming;
    7573    if ~iscell(Timing)
    7674        Timing={Timing};
    7775    end
     76
    7877    s.Time=[];
    7978    for k=1:length(Timing)
     
    126125        end
    127126    end
    128     if ~isfield(s.Camera,'FirstFrameIndexI')
    129         s.Camera.FirstFrameIndexI=1; %first index qssumed equl to 1 by default
    130     end
     127   
    131128    s.Time=[zeros(size(s.Time,1),1) s.Time]; %insert a vertical line of zeros (to deal with zero file indices)
    132129    if s.Camera.FirstFrameIndexI~=0
Note: See TracChangeset for help on using the changeset viewer.