| Algorithm 1. MACF tracking algorithm |
|
Input: 1: Image . 2: Predicted target position and scale in previous frame. |
| Output: |
| 1: Detected target position and scale in current frame. 2: Predicted target position and scale subsequent frame. |
|
Loop: 1: Initialize the Translation model , and Scale model , in the first frame by Equations (3) and (4), and initialize the Confidence of the Squared Response Map in the initial frame by Equation (19). 2: for do. 3: Position detection and prediction: 4: Extract pending sample feature from at and . 5: Compute correlation scores by Equation (8). 6: Set to the target position that maximizes . 7: Predict the position of the target of subsequent frame by joint Equations (11) and (17). 8: Scale detection and prediction: 9: Extract pending sample feature from at and . 10: Compute correlation scores by Equation (8). 11: Set to the target scale that maximizes . 12: Predict the position of the target of subsequent frame by joint Equations (11) and (17). 13: Model update: 14: Compute the Confidence of the Squared Response Map in current frame by Equation (17). 15: Compute the adaptive learning rate by Equation (18). 16: Extract sample features and from at and . 17: Update motion parameters (, , ), (, , ) by Equations (9) and (10). 18: Update Kalman filters by Equation (18). 19: Update the translation model , by adaptive learning rate . 20: Update the scale model , by adaptive learning rate . 21: Return , and , . 22: end for. |