22 #include <linux/videodev2.h>
23 #include <opencv2/core/core.hpp>
24 #include <opencv2/imgproc/imgproc.hpp>
37 JEVOIS_DECLARE_PARAMETER(l2grad,
bool,
"Use more accurate L2 gradient norm if true, L1 if false",
false, ParamCateg);
68 public jevois::Parameter<thresh1, thresh2, aperture, l2grad, thresh1delta, thresh2delta>
94 std::vector<std::future<void> > fut;
96 for (
int i = 0; i < 3; ++i)
100 cv::Mat edges(grayimg.rows, grayimg.cols, CV_8UC1, outimg.pixelsw<unsigned char>() + i * grayimg.total());
102 cv::Canny(grayimg, edges, thresh1::get() + i * thresh1delta::get(),
103 thresh2::get() + i * thresh2delta::get(), aperture::get(), l2grad::get());
107 cv::Mat edges(grayimg.rows, grayimg.cols, CV_8UC1, outimg.
pixelsw<
unsigned char>() + 3 * grayimg.total());
108 cv::Canny(grayimg, edges, thresh1::get() + 3 * thresh1delta::get(),
109 thresh2::get() + 3 * thresh2delta::get(), aperture::get(), l2grad::get());