Ask Your Question

DaliaSH's profile - activity

2016-08-09 06:41:44 -0600 received badge  Famous Question (source)
2016-08-09 06:41:44 -0600 received badge  Notable Question (source)
2016-08-09 06:41:44 -0600 received badge  Popular Question (source)
2016-01-11 05:06:28 -0600 commented question Time Consuming by cvEigenDecomposite

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;
}

2016-01-11 01:04:07 -0600 commented question Time Consuming by cvEigenDecomposite

I need to have a control in each step in PCA

2016-01-11 00:55:19 -0600 asked a question 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;
}