Skip to main content
. 2022 Mar 14;22(6):2234. doi: 10.3390/s22062234
Algorithm 1 The calculation of the proposed method.

Input: Image I

Output: The matching score (Smatching)

 1: I=Blocking(I)

 2: for i=1p do

 3:    for j=1q do

 4:      I(i,j)=mean(Iij)

 5:    end for

 6: end for

 7: Divide I into m blocks of 3×3 matrix, i.e I1,...,Im

 8: Calculate xi=CS-LBP(Ii)

 9: Set x=(x1||x2||||xm)

 10: The enrolled binary codes: {x(n):n=1,2,,N}

 11: for n=1N do

 12:    Sn=sum(x(n)x)

 13: end for

 14: Smatching=minnSnLength(x)