Algorithm 2 Bilateral Fp-2DPCA

Input: A i R m × n ( i = 1 , , N ) , i = 1 M A i = 0

1. Taking A i ( i = 1 , , N ) as the input of algorithm 1, the right projection matrix R n × r is obtained, and the characteristic matrix Y i = A i R of A i is calculated;

2. Taking Y i T ( i = 1 , , N ) as the input of algorithm 1, the left projection matrix L m × l is obtained, and the characteristic matrix B i T = Y i T L of Y i T is calculated;

Output: Output: output left projection matrix L m × l , right projection matrix R n × r , and characteristic matrix B i = L T A i R l × r , i = 1 , 2 , , N .