Changeset 84 for trunk/src/update_imadoc.m
- Timestamp:
- Apr 24, 2010, 2:07:22 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/update_imadoc.m
r29 r84 38 38 end 39 39 end 40 %create a new xml file 40 41 if ~testappend 41 42 t=xmltree; 42 43 t=set(t,1,'name','ImaDoc'); 43 [t,uid_calib]=add(t,1,'element','GeometryCalib'); 44 % in case of movie (avi file), copy timing info in the new xml file 45 [pp,outputroot]=fileparts(outputfile); 46 info=[]; 47 if exist(fullfile(pp,[outputroot '.avi']),'file') 48 info=aviinfo(fullfile(pp,[outputroot '.avi'])); 49 elseif exist(fullfile(pp,[outputroot '.AVI']),'file') 50 info=fullfile(pp,[outputroot '.AVI']); 51 end 52 if ~isempty(info) 53 [t,uid_camera]=add(t,1,'element','Camera'); 54 Camera.TimeUnit='s'; 55 % Camera.BurstTiming.FrameFrequency=info.FramesPerSecond; 56 Camera.BurstTiming.Time=0; 57 Camera.BurstTiming.Dti=1/info.FramesPerSecond; 58 Camera.BurstTiming.NbDti=info.NumFrames-1; 59 t=struct2xml(Camera,t,uid_camera) 60 end 61 [t,uid_calib]=add(t,1,'element','GeometryCalib'); 44 62 end 45 63 t=struct2xml(GeometryCalib,t,uid_calib);
Note: See TracChangeset
for help on using the changeset viewer.