1 | initial version |
cv::Mat img = ...;
CvMat des_img(img);
auto img_buf = Gdk::Pixbuf::create_from_data(des_img.data.ptr, Gdk::COLORSPACE_RGB, false, 8, des_img.rows, des_img.cols, des_img.step)
NOTE: CvMat is defined in opencv2/core/types_c.h header file. It may work...
2 | No.2 Revision |
cv::Mat img =
auto img_buf = Gdk::Pixbuf::create_from_data(des_img.data.ptr, Gdk::COLORSPACE_RGB, false, 8, des_img.rows, des_img.cols, NOTE: CvMat CvMat
is defined in opencv2/core/types_c.h header file. It may work...