| 101 | } |
| 102 | |
| 103 | void regress_boxes(std::vector<face_box>& rects) |
| 104 | { |
| 105 | for(unsigned int i = 0; i < rects.size(); i++) |
| 106 | { |
| 107 | face_box& box = rects[i]; |
| 108 | |
| 109 | float h = box.y1 - box.y0 + 1; |
| 110 | float w = box.x1 - box.x0 + 1; |
| 111 | |
| 112 | box.x0 = box.x0 + w * box.regress[0]; |
| 113 | box.y0 = box.y0 + h * box.regress[1]; |
| 114 | box.x1 = box.x1 + w * box.regress[2]; |
| 115 | box.y1 = box.y1 + h * box.regress[3]; |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | void square_boxes(std::vector<face_box>& rects) |
| 120 | { |
no test coverage detected