I\'ve been working on a face recognition project using OpenCV\'s FaceRecognizer, doing gender differentiation. The algorithm works pretty well, but I wanted to implement som
There's a brief discussion on what this distance actually is on the OpenCV-users list here.
To summarise, the function they use is:
distance = 1.0f - sqrt( distSq / (float)(nTrainFaces * nEigens) ) / 255.0f
However, the author of the function says that it is a very rough guide and not a full proof guide. See the link to the users list discussion for a reference to the paper and a suggestion for an alternative metric.