Algorithm 1 proposed HAG-MSF-CRFs algorithm |
Input:M = {(I,T)}, M. |
where M is the data used for training model , M is the testing data, I is the input training image and T(i,j)∈ {1,2,3,4,5,6} is the ground truth data. |
a: Face segmentation part: |
Step a.1: Training a segmentation model through training data (training images and labels) |
Step a.2: Finding the center of each super-pixel, extracting patches and passing to the model
|
Step a.3: Using the probabilistic classification method and creating probability maps for each class, represented as: |
p, p, p, p, p, and p
|
b. Head pose, age and gender classification part: |
if head pose estimation: |
p + p + p + p + p
|
Else if age classification: |
p + p + p + p + p
|
Else if gender recognition: |
p + p + p + p
|
where f is the feature vector. |
c. Training an RDF classifier for each case (head pose, age and gender) |
Output: estimated pose, age class and gender. |