opencv yuv420p转bgr

cv::Mat yuvImg(inHeight*3/2, inWidth,CV_8UC1, data);
cv::Mat bgrImg(inHeight, inWidth,CV_8UC3);
cv::cvtColor(yuvImg,bgrImg, COLOR_YUV2BGR_NV21);

  

posted @ 2020-09-15 16:29  wywdahai  阅读(770)  评论(0编辑  收藏  举报