I have a problem with my current project about face detection ,
EigenObjectRecognizer recognizer = new EigenObjectRecognizer(
trainingimages.ToArray(),
labels.ToArray(),
1000,
ref termCrit);
it's difficult to find best value of eigen distance ,
i have ever read on an article that sound like this '
The eigen distance threshold, (0, ~1000]. The smaller the number, the more likely an examined image will be treated as unrecognized object. If the threshold is < 0, the recognizer will always treated the examined image as one of the known object.
'
What I have tried:
now i want to know how to get best eigen value , but i want to test to compare two images and get eigen distance ,
example like this
Image<Gray,Byte> testImage = new Image<Gray,Byte>("face6.bmp");
Image<Gray, Byte> testImage2 = new Image<Gray, Byte>("face9.bmp");
Image<Gray, Byte> img3 = testImage-testImage2;
but this is not what i want to do,
i want to compare it in another way , and the result that will return is an int,
how can i solve it?