Changeset 1149 for trunk/src/imadoc2struct.m
- Timestamp:
- Jun 23, 2024, 10:00:16 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/imadoc2struct.m
r1127 r1149 37 37 errormsg='';%default 38 38 s=[]; 39 % s.Heading=[];%default40 % s.Time=[]; %default41 % s.TimeUnit=[]; %default42 % s.GeometryCalib=[];43 % tsai=[];%default44 39 45 40 %% opening the xml file … … 72 67 s.TimeUnit=s.Camera.TimeUnit; 73 68 end 69 if ~isfield(s.Camera,'FirstFrameIndexI') 70 s.Camera.FirstFrameIndexI=1; %first index assumed equl to 1 by default 71 end 74 72 Timing=s.Camera.BurstTiming; 75 73 if ~iscell(Timing) 76 74 Timing={Timing}; 77 75 end 76 78 77 s.Time=[]; 79 78 for k=1:length(Timing) … … 126 125 end 127 126 end 128 if ~isfield(s.Camera,'FirstFrameIndexI') 129 s.Camera.FirstFrameIndexI=1; %first index qssumed equl to 1 by default 130 end 127 131 128 s.Time=[zeros(size(s.Time,1),1) s.Time]; %insert a vertical line of zeros (to deal with zero file indices) 132 129 if s.Camera.FirstFrameIndexI~=0
Note: See TracChangeset
for help on using the changeset viewer.