| 699 | } |
| 700 | |
| 701 | static void DrawRect( // draw a rectangle on an image |
| 702 | CImage& img, // io |
| 703 | const Rect& rect, // in |
| 704 | unsigned color=0xff0000, // in: rrggbb, default is 0xff0000 (red) |
| 705 | int linewidth=2) // in |
| 706 | { |
| 707 | cv::rectangle(img, |
| 708 | cv::Point(rect.x, rect.y), |
| 709 | cv::Point(rect.x + rect.width, rect.y + rect.height), |
| 710 | ToCvColor(color), linewidth); |
| 711 | } |
| 712 | |
| 713 | static void DrawFeat( // draw eye (or mouth) at index i in the eyes vec |
| 714 | CImage& img, // io |
no test coverage detected