MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / DrawRect

Function DrawRect

jni/stasm/eyedet.cpp:701–711  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

699}
700
701static 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
713static void DrawFeat( // draw eye (or mouth) at index i in the eyes vec
714 CImage& img, // io

Callers 3

DrawFeatFunction · 0.85
DrawEyesFunction · 0.85
DrawMouthsFunction · 0.85

Calls 1

ToCvColorFunction · 0.85

Tested by

no test coverage detected