* @brief convert the x and y coords in feats from the search ROI to the image frame * @param feats inout * @param searchrect in */
| 789 | * @param searchrect in |
| 790 | */ |
| 791 | static void DiscountSearchRegion(vec_Rect& feats, const Rect& searchrect) |
| 792 | { |
| 793 | for (int ifeat = 0; ifeat < NSIZE(feats); ifeat++) |
| 794 | { |
| 795 | feats[ifeat].x += searchrect.x; |
| 796 | feats[ifeat].y += searchrect.y; |
| 797 | } |
| 798 | } |
| 799 | |
| 800 | vec_Rect Detect( // detect faces or facial features |
| 801 | const Image& img, // in |