Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cv::Mat image = cv::Mat::zeros(w,h, CV_8UC3);
- for(int x=0;x<w;x++)
- for(int y=0;y<h;y++)
- image.at<cv::Vec3b>(y,x) = cv::Vec3b(red[x][y], blue[x][y], green[x][y]);
- cv::imwrite("image.png", image);
- IplImage *frameConverted = new IplImage(image);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement