YUV420 to RGB color conversion Error

后端 未结 2 675
执念已碎
执念已碎 2021-02-06 16:14

I am converting an image in YUV420 format to RGB image in opencv but im getting an Orange colored image after

2条回答
  •  轮回少年
    2021-02-06 17:08

    the 1st problem is using the outdated c-api (it's dead & gone. please use c++ instead).

    the 2nd problem is writing your own (slow and error prone) pixel loops

    why not use :

    cvtColor(crs,dst, CV_YUV2BGR); // or CV_YUV2BGR_I420
    

    instead ?

提交回复
热议问题