Changeset 109 for trunk/src/imadoc2struct.m
- Timestamp:
- Oct 4, 2010, 10:39:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/imadoc2struct.m
r89 r109 1 1 %'imadoc2struct': reads the xml file for image documentation 2 2 %------------------------------------------------------------------------ 3 % function [s,errormsg]=imadoc2struct(ImaDoc )3 % function [s,errormsg]=imadoc2struct(ImaDoc,option) 4 4 % 5 5 % OUTPUT: … … 13 13 % INPUT: 14 14 % ImaDoc: full name of the xml input file with head key ImaDoc 15 16 function [s,errormsg]=imadoc2struct(ImaDoc) 17 15 % option: ='GeometryCalib': read the data of GeometryCalib, including source point coordinates 16 17 function [s,errormsg]=imadoc2struct(ImaDoc,option) 18 if ~exist('option','var') 19 option='default'; 20 end 18 21 errormsg=[];%default 19 22 s.Heading=[];%default … … 88 91 Dtj=reshape(Dtj'*ones(1,NbDtj),1,NbDtj*numel(Dtj)); %concatene Dti vector NbDti times 89 92 Dtj=[0 Dtj]; 90 % Time_val'91 % ones(1,numel(Dtj))92 % ones(numel(Time_val'),1)93 % cumsum(Dtj)94 93 Time_val=Time_val*ones(1,numel(Dtj))+ones(numel(Time_val),1)*cumsum(Dtj);% produce a time matrix with Dtj 95 94 end … … 107 106 end 108 107 end 109 % if size(s.Time,1)==1110 % s.Time=(s.Time)'; %change vector into column111 % end112 108 end 113 109 … … 210 206 end 211 207 end 208 if strcmp(option,'GeometryCalib') 209 tsai.PointCoord=get_value(subt,'/GeometryCalib/SourceCalib/PointCoord',[0 0 0 0 0]);%time in TimeUnit 210 end 212 211 s.GeometryCalib=tsai; 213 212 end … … 228 227 val_read=str2num(get(t,uid_child(icell),'value')); 229 228 if ~isempty(val_read) 230 val(icell )=val_read;229 val(icell,:)=val_read; 231 230 end 232 231 end
Note: See TracChangeset
for help on using the changeset viewer.