Skip to main content
. 2023 Jul 11;23(14):6297. doi: 10.3390/s23146297
Algorithm 1 Independent moving object detection
Input: It1,It,It+1,Ht1,t
Output: Rt
1: FP  0 0 0 0 0 0
2: i=0
3: while i<6:
4:     FP[i]  number of feature points in Iti
5:     if FPi<n:
6:         Find at least nFP[i] feature points in Iti
7:     endif
8: end while
9: OFt,t+1 optical flow between Iti and It+1i           ► Track
background feature points
10: Ht,t+1  estimate homography between Iti and It+1i using OF
►Calculate homography matrix
11: Rt  average([(ItHt1,t·It1)+(It+1Ht,t+1·It)])
►Background subtraction
12: Rt  Binarize(Dilation(MedianFilter(Rt)))           ►Apply
denoising filters and binarization