i tried to run the fisher algorithm provided by openCV community. http://docs.opencv.org/modules/contrib/doc/facerec/facerec_tutorial.html#tp91
But it produces the following error.
OpenCV Error: Image step is wrong (The matrix is not continuous, thus its number
of rows can not be changed) in unknown function, file
......\src\opencv\modules\core\src\matrix.cpp, line 802"
And found out that error is caused by,
Ptr<FaceRecognizer> model = createFisherFaceRecognizer();
model->train(images, labels); //Error occurs when i cal this method
Images i am feeding are the same size. following links say it could be due to release libraries.
OpenCV 2.0 C++ API using imshow: returns unhandled exception and "bad-flag"
Getting OpenCV Error "Image step is wrong" in Fisherfaces.train() method
But i removed all the release libraries from the project and using the debug mode in visual studio 2010. I am using OpenCV 2.4.5
But i could not go pass the error.
please help.
Thank you.