Lines Matching refs:ppNew
70 inline int GetEnergy(CvTrackingRect** ppNew, const CvTrackingRect* pPrev, CvPoint* ptTempl, CvRect* rTempl);
71 inline int GetEnergy2(CvTrackingRect** ppNew, const CvTrackingRect* pPrev, CvPoint* ptTempl, CvRect* rTempl, int* element);
790 inline int GetEnergy(CvTrackingRect** ppNew, const CvTrackingRect* pPrev, CvPoint* ptTempl, CvRect* rTempl)
797 ptNew[i] = ppNew[i]->ptCenter;
799 energy += ppNew[i]->iEnergy - 2 * ppNew[i]->nRectsInThis;
804 double w_eye = double(ppNew[LEYE]->r.width + ppNew[REYE]->r.width) * scale / 2.0;
805 double h_eye = double(ppNew[LEYE]->r.height + ppNew[REYE]->r.height) * scale / 2.0;
806 double w_mouth = double(ppNew[MOUTH]->r.width) * scale;
807 double h_mouth = double(ppNew[MOUTH]->r.height) * scale;
810 4 * pow2(ppNew[LEYE]->r.width - ppNew[REYE]->r.width) +
811 4 * pow2(ppNew[LEYE]->r.height - ppNew[REYE]->r.height) +
820 inline int GetEnergy2(CvTrackingRect** ppNew, const CvTrackingRect* pPrev, CvPoint* ptTempl, CvRect* rTempl, int* element)
822 CvPoint new_v = {ppNew[element[0]]->ptCenter.x - ppNew[element[1]]->ptCenter.x,
823 ppNew[element[0]]->ptCenter.y - ppNew[element[1]]->ptCenter.y};
832 double w0 = (double)ppNew[element[0]]->r.width * scale_templ;
833 double h0 = (double)ppNew[element[0]]->r.height * scale_templ;
834 double w1 = (double)ppNew[element[1]]->r.width * scale_templ;
835 double h1 = (double)ppNew[element[1]]->r.height * scale_templ;
837 int energy = ppNew[element[0]]->iEnergy + ppNew[element[1]]->iEnergy +
838 - 2 * (ppNew[element[0]]->nRectsInThis - ppNew[element[1]]->nRectsInThis) +