Changeset 951 for trunk/src/uvmat.m


Ignore:
Timestamp:
Jun 12, 2016, 5:09:47 PM (8 years ago)
Author:
sommeria
Message:

bugs repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/uvmat.m

    r950 r951  
    20392039        end
    20402040            % complement the input if the whole time series is not defined
    2041             if size(i1_series,3)>size(XmlDataRead.Time,1)-ind_start %only the first time interval is defined, extrapolate to the whole series           
    2042                 Dti_total=XmlDataRead.Time(end)-XmlDataRead.Time(1);%total time interval covered by the time vector
    2043                 missing_indices=sizDti+1+ind_start:size(i1_series,3)+1;% remaining set of frame indices for which time needs to be found
    2044                 repeat_nbre=1+floor((missing_indices-sizDti-ind_start)/(sizDti-1));% number of repetitions of Dti
    2045                 time_indices=1+mod(missing_indices-sizDti-1,sizDti-1);
    2046                 for j=1:size(XmlDataRead.Time,2)
    2047                     XmlData.Time(missing_indices,j)=XmlDataRead.Time(time_indices,j)+repeat_nbre'*Dti_total;
    2048                 end
    2049                 % update the xml file with NbDti
    2050                 t=xmltree(XmlFileName);
    2051                 uid_NbDti=find(t,'ImaDoc/Camera/BurstTiming/NbDti')
    2052                 if isempty(uid_NbDti)
    2053                     uid_BurstTiming=find(t,'ImaDoc/Camera/BurstTiming')
    2054                     [t,uid_NbDti]=add(t,uid_BurstTiming,'element','NbDti');
    2055                 end
    2056                 [t,uid_NbDti]=add(t,uid_NbDti,'chardata',num2str(repeat_nbre(end)-1));
    2057                 save(t,XmlFileName)
    2058             end
     2041%             if size(i1_series,3)>size(XmlDataRead.Time,1)-ind_start %only the first time interval is defined, extrapolate to the whole series           
     2042%                 Dti_total=XmlDataRead.Time(end)-XmlDataRead.Time(1);%total time interval covered by the time vector
     2043%                 missing_indices=sizDti+1+ind_start:size(i1_series,3)+1;% remaining set of frame indices for which time needs to be found
     2044%                 repeat_nbre=1+floor((missing_indices-sizDti-ind_start)/(sizDti-1));% number of repetitions of Dti
     2045%                 time_indices=1+mod(missing_indices-sizDti-1,sizDti-1);
     2046%                 for j=1:size(XmlDataRead.Time,2)
     2047%                     XmlData.Time(missing_indices,j)=XmlDataRead.Time(time_indices,j)+repeat_nbre'*Dti_total;
     2048%                 end
     2049%                 % update the xml file with NbDti
     2050%                 t=xmltree(XmlFileName);
     2051%                 uid_NbDti=find(t,'ImaDoc/Camera/BurstTiming/NbDti')
     2052%                 if isempty(uid_NbDti)
     2053%                     uid_BurstTiming=find(t,'ImaDoc/Camera/BurstTiming')
     2054%                     [t,uid_NbDti]=add(t,uid_BurstTiming,'element','NbDti');
     2055%                 end
     2056%                 [t,uid_NbDti]=add(t,uid_NbDti,'chardata',num2str(repeat_nbre(end)-1));
     2057%                 save(t,XmlFileName)
     2058%             end
    20592059        end
    20602060        set(handles.view_xml,'BackgroundColor',[1 1 1])% paint back to white
Note: See TracChangeset for help on using the changeset viewer.