| Algorithm 1: ITF-GMM |
|
1. Input Video frame sequence |
|
2. Output Foreground masks for each frame |
|
3. Initialization for each pixel x do Initialize N Gaussian distributions end for |
|
4. Procedure process for each frame do Extract ROI Compute dynamic LR via Equation (11) in ROI Compute dynamic Gaussian components via Equations (12)–(13) in ROI for each pixel xt do Compare xt with existing model via Equation (4) if a match is found then Mark xt as background Update parameter via Equations (5)–(7) else if no match then Mark xt as foreground Update weights via Equation (8) end if if xt ∈ ROI then update LR and N else N = 2 end if Normalize all weights to ensure sum is 1 and N satisfies Equation (9) end for end for |