Ignore:
Timestamp:
Jun 5, 2018, 10:13:08 PM (6 years ago)
Author:
sommeria
Message:

LIF clib corrected + histo velocity repaired

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/series/extract_multitif_special.m

    r1048 r1049  
    144144% end
    145145%ImagesPerLevel=size(XmlInput.Time,2)-1;%100;%use the xmlinformation to get the nbre of j indices
     146Dtj=0.05;% time interval between frames
    146147ImagesPerLevel=450;% total number of images per position, ImagesPerLevel-Nbj images skiiped during motion between two positions
    147148Nbj=400; %Nbre of images kept at a given position
     149Dti=Dtj*ImagesPerLevel;
     150NbLevel=11;
     151NbScan=3;
     152TimeReturn=20; %time needed to return back to the first position (in sec)
     153NbSkippedReturn=round(TimeReturn/Dtj);
    148154%% create the xml file of PCO camera if it does not exist
    149155Newxml=fullfile(Param.InputTable{1,1},[Param.InputTable{1,2} '.xml']);
     
    154160   % XmlInput.Camera.BurstTiming.Time=-1;% for 180
    155161   XmlInput.Camera.BurstTiming.Time=0;% for 200
    156     XmlInput.Camera.BurstTiming.Dtj=0.05;
    157     XmlInput.Camera.BurstTiming.NbDtj=199;
    158     XmlInput.Camera.BurstTiming.Dti=12.5;
    159     XmlInput.Camera.BurstTiming.NbDti=10;
    160     XmlInput.Camera.BurstTiming.Dtk=157;
    161     XmlInput.Camera.BurstTiming.NbDtk=2;
     162    XmlInput.Camera.BurstTiming.Dtj=Dtj;
     163    XmlInput.Camera.BurstTiming.NbDtj=Nbj-1;
     164    XmlInput.Camera.BurstTiming.Dti=Dti;
     165    XmlInput.Camera.BurstTiming.NbDti=NbLevel-1;
     166    XmlInput.Camera.BurstTiming.Dtk=Dti*Nb
     167    Level+TimeReturn;
     168    XmlInput.Camera.BurstTiming.NbDtk=NbScan-1;
    162169    %XmlInput=rmfield(XmlInput,'Time');
    163170    %XmlInput=rmfield(XmlInput,'TimeUnit');
     
    198205            i_index=fix((count-1)/ImagesPerLevel)+1;
    199206            j_index=mod(count-1,ImagesPerLevel)+1;
    200         elseif count<=ImagesPerLevel*11+400 %skip 400 images during return
     207        elseif count<=ImagesPerLevel*NbLevel+400 %skip 400 images during return
    201208            checkkeep=0;
    202         elseif count<=ImagesPerLevel*22+400 % =5930 second scan
     209        elseif count<=ImagesPerLevel*2*NbLevel+400 % =5930 second scan
    203210            i_index=fix((count-401)/ImagesPerLevel)+1;
    204211            j_index=mod(count-401,ImagesPerLevel)+1;
    205         elseif count<=ImagesPerLevel*22+800 %skip images during second return, from 2763 to 3167
     212        elseif count<=ImagesPerLevel*2*NbLevel+800 %skip images during second return, from 2763 to 3167
    206213            checkkeep=0;
    207         elseif count<=ImagesPerLevel*33+800 % =5930 third scan
     214        elseif count<=ImagesPerLevel*3*NbLevel+800 % =5930 third scan
    208215            i_index=fix((count-801)/ImagesPerLevel)+1;
    209216            j_index=mod(count-801,ImagesPerLevel)+1;
Note: See TracChangeset for help on using the changeset viewer.