Skip to content

Instantly share code, notes, and snippets.

@vieirin
Created April 22, 2016 15:22
Show Gist options
  • Save vieirin/3095993ab98402e1bd5dd3037840631a to your computer and use it in GitHub Desktop.
Save vieirin/3095993ab98402e1bd5dd3037840631a to your computer and use it in GitHub Desktop.
void PointClickDistance::draw_grid(cv::Mat frame){
for(int i = 0; i <= 640; i +=160){
cv::line(frame, cv::Point(i, 0), cv::Point(i, 480), cv::Scalar(255, 0, 0));
for(int j = 0; j < 480; j += 120)
cv::line(frame, cv::Point(0, j), cv::Point(640, j), cv::Scalar(255, 0, 0));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment