| Algorithm 3: Dictionary update. |
| for to the end of the frame sequence |
| 1. if |
| 1-1. add the target descriptor |
| and background descriptors to F |
| 1. else |
| 1-2. |
| for every k frames |
| 2. build the new metrics and using the vectors in F |
| by structured sparse PCA |
| 3. update classifier using and |
| 4. compute for |
| 5. keep the largest target descriptors in F, |
| and delete the rest descriptor from F |
| 6. |
| end |