knrt.net
当前位置:首页 >> 如何使用CvCvConvErt将YUV422psEmi格式转换为RGB >>

如何使用CvCvConvErt将YUV422psEmi格式转换为RGB

法一:OpenCV自带cvCvtColor 说明:这种方法会出现图片“泛白”,具体原因网上是说cvCvtColor这个函数左右协议不同,不太懂。 代码: void FileWriteFrames(){ char *filename = "E:\\openCV\\zhang\\yuvSource\\football_cif.yuv"; ifstream read...

types_c.h //YUV 4:2:2 formats family CV_YUV2RGB_UYVY = 107, CV_YUV2BGR_UYVY = 108, //CV_YUV2RGB_VYUY = 109, //CV_YUV2BGR_VYUY = 110, CV_YUV2RGB_Y422 = CV_YUV2RGB_UYVY, CV_YUV2BGR_Y422 = CV_YUV2BGR_UYVY, CV_YUV2RGB_UYNV = CV_YUV...

types_c.h //YUV 4:2:2 formats family CV_YUV2RGB_UYVY = 107, CV_YUV2BGR_UYVY = 108, //CV_YUV2RGB_VYUY = 109, //CV_YUV2BGR_VYUY = 110, CV_YUV2RGB_Y422 = CV_YUV2RGB_UYVY, CV_YUV2BGR_Y422 = CV_YUV2BGR_UYVY, CV_YUV2RGB_UYNV = CV_YUV...

原因是cvshowimage不论是什么颜色空间的图像,都会以RGB的形式显示,所以图像发生了颜色变化

网站首页 | 网站地图
All rights reserved Powered by www.knrt.net
copyright ©right 2010-2021。
内容来自网络,如有侵犯请联系客服。zhit325@qq.com