1 | initial version |
cv::Mat raw(640, 480, CV_8UC1, frame->buffer.data());
i'm unshure about bayer images, but CV_8UC1 would mean, that your input image has 1 channel only(gray). try CV_8UC3 (3 uchar channels) i think, you truncated it cv::Mat raw(480,640, CV_8UC3, frame->buffer.data());
2 | No.2 Revision |
cv::Mat raw(640, 480, CV_8UC1, frame->buffer.data());
i'm unshure about bayer images, but CV_8UC1 would mean, that your input image has 1 channel only(gray). try CV_8UC3 (3 uchar channels) i think, you truncated it cv::Mat raw(480,640, CV_8UC3, frame->buffer.data());