Skip to content

Instantly share code, notes, and snippets.

@burak-yildizoz
burak-yildizoz / cv_cb.cpp
Created December 19, 2020 17:22
OpenCV createTrackbar lambda callback function
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp> // putText, CV_RGB
#include <tuple>
#include <string> // to_string
int main() {
cv::Mat src = cv::Mat(480, 640, CV_8UC3, CV_RGB(0, 0, 0));
cv::Mat dst;
int num = 5;
typedef std::tuple<const cv::Mat&, cv::Mat&, int&> tup_t;