cvCalcEigenObjects crashes [closed]

asked 2016-02-12 05:44:06 -0500

manasa gravatar image

"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?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by sturkmen
close date 2020-10-07 12:49:13.626509


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.

berak gravatar imageberak ( 2016-02-12 05:59:47 -0500 )edit

also, your question is lacking any context. is there any code to show ? what are your numbers ?

berak gravatar imageberak ( 2016-02-12 06:08:37 -0500 )edit

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

manasa gravatar imagemanasa ( 2016-02-12 06:51:49 -0500 )edit

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

berak gravatar imageberak ( 2016-02-12 07:05:24 -0500 )edit

Opencv eigen computation and Matlab eigen computation does it give same values and vector??

manasa gravatar imagemanasa ( 2016-02-15 04:28:40 -0500 )edit