Home | History | Annotate | Download | only in src

Lines Matching refs:Rect

93 //class RFace(rect based face) 
120 inline bool RFace::isPointInRect(CvPoint p,CvRect rect)
122 if ( (p.x >= rect.x) && (p.y >= rect.y) && (p.x <= rect.x + rect.width) && (p.y <= rect.y + rect.height) )
126 }//inline bool RFace::isPointInRect(CvPoint,CvRect rect)
138 CvRect Rect = *(CvRect*)lpCandidat;
140 if (Rect.height > Rect.width)
144 long Size = Rect.width*Rect.height;
154 long x = Rect.x + cvRound(Rect.width/2);
155 long y = Rect.y + cvRound(Rect.height/2);
160 // if ( isPointInRect(cvPoint(Rect.x,Rect.y),UpRect) &&
161 // isPointInRect(cvPoint(Rect.x + Rect.width,Rect.y + Rect.height),UpRect ) &&
162 // isPointInRect(cvPoint(DownRect.x,DownRect.y),Rect) &&
163 // isPointInRect(cvPoint(DownRect.x + DownRect.width,DownRect.y + DownRect.height),Rect) )
167 // if ( isPointInRect(cvPoint(Rect.x,Rect.y),IdealRect) &&
168 // isPointInRect(cvPoint(Rect.x + Rect.width,Rect.y + Rect.height),IdealRect ) )
172 }//inline bool RFace::CheckElem(CvRect rect)
305 CvRect rect = *(CvRect*)m_lppFoundedFaceFeatures[i][j].GetContour();
306 CvPoint p1 = cvPoint(rect.x,rect.y);
307 CvPoint p2 = cvPoint(rect.x + rect.width,rect.y + rect.height);
319 CvRect Rect = *(CvRect*)m_lpIdealFace[i].GetContour();
320 CvPoint p1 = cvPoint(Rect.x,Rect.y);
321 CvPoint p2 = cvPoint(Rect.x + Rect.width,Rect.y + Rect.height);
327 inline void RFace::ResizeRect(CvRect Rect,CvRect * lpRect,long lDir,long lD)
331 lpRect->x = Rect.x - lD;
332 lpRect->y = Rect.y - lD;
333 lpRect->width = Rect.width + 2*lD;
334 lpRect->height = Rect.height + 2*lD;
338 lpRect->x = Rect.x + lD;
339 lpRect->y = Rect.y + lD;
340 if (Rect.width - 2*lD >= 0)
342 lpRect->width = Rect.width - 2*lD;
346 if (Rect.height - 2*lD >= 0)
348 lpRect->height = Rect.height - 2*lD;