|
Algorithm 2 ANOVA F-spectral Embedding |
| Input:
. |
| Output:
|
| 1 is the sample image feature matrix, is the selected and transformed sample image feature matrix. |
| 2 FOR
i = 1: n //n is the dimension of a feature in the feature matrix of the image sample. |
| 3 Calculate the -value of each feature according to Formula (18). |
| 4
|
| 5 // is the sum of the f-values of the sample features, is the f-value of the i-th feature. |
| 6 END
|
| 7 Calculate the value of each feature according to Formula (18), sort in descending order |
| 8 FOR
i = 1: n
|
| 9 IF (sum + = ) < 99.9% |
| 10 = () |
| 11 END
|
| 12 END
|
| 13 Transform into a graph representation using the affinity (adjacency) matrix representation. |
| 14 Construct an unnormalized Laplacian graph as and a normalized graph as . |
| 15 Perform eigenvalue decomposition on the Laplacian graph after performing the above treatment on . |
| 16 Return
|