|
Algorithm 1: Time interval determination |
Choose the threshold value s0 experimentally.
Choose arbitrary an interval of confidence M0T, where M0 is the arbitrary chosen number of frames.
Waiting when the signal / is below the threshold value s0.
If the signal value exceeds the threshold value s0 during the confidence interval [NbT, NbT+M0T] then moment NbT-M0T determines beginning of signal pattern.
If the signal value / 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.
The cross correlation function is calculated as the following:
Finally, velocity of the flow in (i,j) pixel is calculated according to Equation (2), however adding the interval [NeT, NeT+M0T]:
Return to step 3 where n=Ne i.e., starting from the moment of the interval when the signal /. is below the threshold value s0.
|