Skip to content

Instantly share code, notes, and snippets.

@saccadic
Created March 14, 2021 07:59
Show Gist options
  • Save saccadic/1ab8fa974e9d1c72cdaf315238aa6c80 to your computer and use it in GitHub Desktop.
Save saccadic/1ab8fa974e9d1c72cdaf315238aa6c80 to your computer and use it in GitHub Desktop.
opencvで十字を表示する
void DrawCross(cv::Mat &src, cv::Point p, float r, cv::Scalar col, float lw) {
cv::line(src, cv::Point(p.x, p.y + r), cv::Point(p.x, p.y - r), col, lw);
cv::line(src, cv::Point(p.x + r, p.y), cv::Point(p.x - r, p.y), col, lw);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment