Skip to main content
. 2020 Jan 6;20(1):306. doi: 10.3390/s20010306
Algorithm 1: Time interval determination
  1. Choose the threshold value s0 experimentally.

  2. Choose arbitrary an interval of confidence M0T, where M0 is the arbitrary chosen number of frames.

  3. Waiting when the signal xi,j(nT)/yi,j(nT) is below the threshold value s0.

  4. If the signal value xi,j(nT)/yi,j(nT) exceeds the threshold value s0 during the confidence interval [NbT, NbT+M0T] then moment NbT-M0T determines beginning of signal pattern.

  5. If the signal value xi,j(nT)/yi,j(nT) is below the threshold value s0 during the interval of confidence [NeT, NeT+M0T] then moment NeT+M0T is chosen as the end of the signal pattern.

  6. The cross correlation function is calculated as the following:
    Ri,j(kT)=1NeNb+2M0n=NbM0Ne+M0xi,j(nT)yi,j((nk)T), k=,1,0,1 
  7. Finally, velocity of the flow in (i,j) pixel is calculated according to Equation (2), however adding the interval [NeT, NeT+M0T]:
    Vi,j|[NeT,NeT+M0T]¯= dτ0
  8. Return to step 3 where n=Ne i.e., starting from the moment of the interval when the signal xi,j(NeT)/yi,j(NeT). is below the threshold value s0.