Skip to main content
. 2018 Nov 14;18(11):3937. doi: 10.3390/s18113937
Algorithm 1. MACF tracking algorithm
Input:
1: Image It.
2: Predicted target position PPt and scale Pst in previous frame.
Output:
1: Detected target position Pt and scale St in current frame.
2: Predicted target position PPt+1 and scale Pst+1 subsequent frame.
Loop:
1: Initialize the Translation model A1,trans, B1,trans and Scale model A1,scale, B1,scale in the first frame by Equations (3) and (4), and initialize the Confidence of the Squared Response Map CSRM0 in the initial frame by Equation (19).
2: for t[2,tf] do.
3:  Position detection and prediction:
4:    Extract pending sample feature Zt,trans from It at PPt and Pst.
5:    Compute correlation scores Yt,trans by Equation (8).
6:    Set Pt to the target position that maximizes Yt,trans.
7:    Predict the position PPt+1 of the target of subsequent frame by joint Equations (11) and (17).
8:  Scale detection and prediction:
9:    Extract pending sample feature Zt,scale from It at Pt and Pst.
10:    Compute correlation scores Yt,scale by Equation (8).
11:    Set St to the target scale that maximizes Yt,scale.
12:    Predict the position Pst+1 of the target of subsequent frame by joint Equations (11) and (17).
13:  Model update:
14:    Compute the Confidence of the Squared Response Map CSRMt in current frame by Equation (17).
15:    Compute the adaptive learning rate ηt by Equation (18).
16:    Extract sample features Xt,trans and Xt,scale from It at Pt and St.
17:    Update motion parameters (vxt, vyt, vst), (axt, ayt, ast) by Equations (9) and (10).
18:    Update Kalman filters by Equation (18).
19:    Update the translation model At,trans, Bt,trans by adaptive learning rate ηt.
20:    Update the scale model At,scale, Bt,scale by adaptive learning rate ηt.
21:  Return Pt, and PPt+1, Pst+1.
22: end for.