Skip to main content
. 2022 Nov 26;22(23):9209. doi: 10.3390/s22239209
Algorithm 2 The 3D moments computation [83]

Input:F = 3D image, Qd = Charlier polynomials.

Output:FV = Charlier moments.

1: Generate extended 3D image (G) from the 3D image F {Equation (22).}

2: Get stored Charlier polynomials Qx, Qy, and Qz {Using Equation (26).}

3: for z = 1 to Ordz do

4:     MM+RzQxGQy

5: end for

6: FVreshape(M) {Reshape the computed moments as a feature vector.}

7: return FV {Note: in the training and testing phases, the feature vector is normalized.}