Research Article
A Reliable Event-Driven Strategy for Real-Time Multiple Object Tracking Using Static Cameras
Algorithm 3
Transformation grid (TG) algorithm.
Input data: | The image coordinates of point P(xi,yi). | The TG-Cell point P laid in Celli = {P11, P21, P22, P12}. | The real x-coordinate of point P11 is called P11-xr. | Calculated parameters: | Rn: the iterated value of R after n tries. | R0: the initial value of R which equals 0.5. | Px1, Px2: are calculated with equation (4) and by Celli | points' image coordinates. | xth: the perpendicular distance in pixels from point | P(xi,yi) to line Px1, Px2. | Pxr: the real x-coordinate of Point P; it is the goal of | this algorithm. | Algorithm: | Start: | for n = 0; R0 = 0.5; | if xth for R0 <= 1 pixel then R = R0, and go to OUT | Calculate Rn: | n = n + 1 | = + * 0.5 // for n = 1; | = 0.75 | = − * 0.5 // for n = 1; | Rn2 = 0.25 | if xth for > xth for then | Rn = , and xth = xth for | else | Rn = , and xth = xth for | if xth <= 1 pixel then | R = Rn, and go to OUT | else | go to Calculating Rn | OUT: | Pxr = P11-xr + (P12-xr – P11-xr) * R |
|