I am trying to find the Mahalanobis distances between a test sample and a few training data (At&t database). I took http://answers.opencv.org/question/3494/adding-new-method-in-facerecognizer/ as reference for my code. When I run the code I am getting the following error
Blockquote
"OpenCV Error: Assertion failed (type == v2.type() && type == icovar.type() && sz == v2.size() && len == icovar.rows && len == icovar.cols) in Mahalanobis, file /home/valuser/opencv-2.4.9/modules/core/src/matmul.cpp, line 2244 " Please find the code snippet for mahalanobis distance here http://pastebin.com/Mg8DbFQJ