Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Time Consuming by cvEigenDecomposite

Dears ,
I am trying to implement face recognition using pca ,
when I user the function "cvEigenDecomposite" to project test img in face space , I measured the time consuming by this function in different situations


When Training = 800 img & # eigen values = 799 ---------> time = 181 sec
When Training = 1000 img & # eigen values = 999 ---------> time = 72 sec !!!!!!!!!!!!!

is this logic ???????????
why 1000 takes smaller time ??????????

click to hide/show revision 2
No.2 Revision

updated 2016-01-11 06:34:29 -0600

berak gravatar image

Time Consuming by cvEigenDecomposite

Dears ,
I am trying to implement face recognition using pca ,
when I user the function "cvEigenDecomposite" to project test img in face space , I measured the time consuming by this function in different situations


When Training = 800 img & # eigen values = 799 ---------> time = 181 sec
When Training = 1000 img & # eigen values = 999 ---------> time = 72 sec !!!!!!!!!!!!!

is this logic ???????????
why 1000 takes smaller time ??????????

for (i = 0; i < iTestFaces; i++){ 
    subFuncTime_Decomposite = GetTickCount(); 
    cvEigenDecomposite(pFaceImageArr[i], iEigens, pEigenVectArr, 0, 0, pAvgTrainImg, pProjectedTestFace); 
    subFuncTime_Decomposite = GetTickCount() - subFuncTime_Decomposite; 

    subFuncTime_iNearestPerson = GetTickCount(); 
    iNearestPerson = FindNearestNeighbor(pProjectedTestFace, iNearestDistance,MyID ,ResultFileObj, ResultExcelObj); 
    subFuncTime_iNearestPerson = GetTickCount() - subFuncTime_iNearestPerson; <br> 
}
click to hide/show revision 3
No.3 Revision

updated 2016-01-11 06:35:26 -0600

berak gravatar image

Time Consuming by cvEigenDecomposite

Dears ,
I am trying to implement face recognition using pca ,
when I user the function "cvEigenDecomposite" to project test img in face space , I measured the time consuming by this function in different situations


When Training = 800 img  &  # eigen values = 799   ---------> time = 181 sec  
When Training = 1000 img & # eigen values = 999 ---------> time = 72 sec !!!!!!!!!!!!!

!!!!!!!!!!!!!

is this logic ???????????
why 1000 takes smaller time ??????????

for (i = 0; i < iTestFaces; i++){ 
    subFuncTime_Decomposite = GetTickCount(); 
    cvEigenDecomposite(pFaceImageArr[i], iEigens, pEigenVectArr, 0, 0, pAvgTrainImg, pProjectedTestFace); 
    subFuncTime_Decomposite = GetTickCount() - subFuncTime_Decomposite; 

    subFuncTime_iNearestPerson = GetTickCount(); 
    iNearestPerson = FindNearestNeighbor(pProjectedTestFace, iNearestDistance,MyID ,ResultFileObj, ResultExcelObj); 
    subFuncTime_iNearestPerson = GetTickCount() - subFuncTime_iNearestPerson; <br> 
subFuncTime_iNearestPerson;
}