| Algorithm 1 Fp-2DPCA |
| Input: |
| Initialize: |
| While: 1. Calculate for each according to Equation (9), Calculate according to the conclusion of Equation (23), |
| 2. Calculate according to Equation (9) and Equation (23), |
| 3. SVD decomposition of : , |
| 4. Calculate according to the conclusion of Equation (23), |
| 5. Update , |
| 6. Update . |
| Output: |