MCPcopy Create free account
hub / github.com/autowarefoundation/vision_pilot / draw_panel

Function draw_panel

VisionPilot/modules/debug/src/debug_draw.cpp:107–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107static void draw_panel(cv::Mat& img, cv::Rect r, const char* title, cv::Scalar accent)
108{
109 const cv::Rect clip = r & cv::Rect(0, 0, img.cols, img.rows);
110 if (clip.width <= 0 || clip.height <= 0) return;
111 fill_rect(img, clip, kClrHudBg, 0.82);
112 cv::rectangle(img, clip, accent, 1, cv::LINE_AA);
113 if (title && title[0])
114 cv::putText(img, title, cv::Point(clip.x + 6, clip.y + 14),
115 kFont, 0.40, accent, 1, cv::LINE_AA);
116}
117
118static void draw_tag(cv::Mat& img, cv::Point anchor, const char* label, cv::Scalar color)
119{

Callers 2

draw_legendFunction · 0.85
draw_bev_fused_ego_pathFunction · 0.85

Calls 1

fill_rectFunction · 0.85

Tested by

no test coverage detected