python-exercises/test-swig/test_swig_opencv.cpp

9 lines
229 B
C++
Raw Normal View History

#include "test_swig_opencv.hpp"
#include <opencv2/imgproc/imgproc.hpp>
void UsefulStuffUsingOpenCV::doit(cv::Mat& input) {
// Draw a circle
cv::circle(input, cv::Point2f(input.cols/2, input.rows/2), input.cols/5, 0, -1);
}