Convert format by mainipulating pixels

This commit is contained in:
kalman
2018-12-19 17:04:16 +08:00
parent e32138c70a
commit 403ecff01e
7 changed files with 32 additions and 13 deletions

View File

@@ -144,7 +144,6 @@ int main(int argc, char *argv[]) {
// only lastest frame is valid
cv::Mat img(400, 1280, CV_8UC3, const_cast<void *>(frame->data));
cv::cvtColor(img, img, CV_BGR2RGB);
cv::imshow("frame", img);
frame = nullptr;