cvCalcEigenObjects crashes [closed]
"cvCalcEigenObjects" function crashes when it contains equal number of train images for face recognition. "nEigens = nTrainFaces-1 " has been used by Shervin Emami in his face recognition code (2012). Why it doesn't crash if it less than 1?
shervin's code was cool in 2012, but opencv's api has changed significantly in the meantime.
please do no more use IplImage* , cvCalcEigenObjects, or anything fom the discontinued c-api.
also, your question is lacking any context. is there any code to show ? what are your numbers ?
The same original code of his i am using .. But not able to figure out why it is "int nEigens = nTrainFaces-1 " why it crashes if "int nEigens = nTrainFaces" in cvCalcEigenObjects
most likely, you should just stop looking at that outdated stuff, and either use the opencv3 face recognition , or, if you still feel like rolling your own, at least use cv::PCA
Opencv eigen computation and Matlab eigen computation does it give same values and vector??