Research Article
A Hierarchical Framework for Facial Age Estimation
Algorithm 2
Algorithm flowchart of ranking-KNN.
| Input: Training set with samples | | Testing sample | | Group with boundary and , output by age group estimation | | Output: Estimated age of the testing sample | | Initialization: , , , , | | Discipline: | | (1) For | | (1.1) For | | If | | Else | | End for | | (1.2) Call KNN to decide belonging to subset or , using the samples within group . | | If , else | | End for | | (2) Deduce the estimated age of testing sample based on : | | For | | | | End for | | | | (3) Output the estimated age |
|