How can I convert Yuv420 to BGR in gpu mode

asked 2016-10-10 22:29:36 -0600

When I use cv::cvtColor in CPU,cvtColor(yuvImage, rgbImg, COLOR_YUV2BGR_I420);It works well.I can get a correct BGR picture But I want to use gpu accelerate this transform,I use gpu::cvtcolor to instead.I find this function don't support COLOR_YUV2BGR_I420 code.It has a code named YUV2BGR and Ycrcb2BGR,but this code need Yuv src picture 8UC3.I don`t know why.YUV420 picture in CPU it should be 8UC1,is it? How can I convert Yuv420 to BGR in gpu mode?

edit retag flag offensive close merge delete

Comments

my opencv version is 2.4.13 system is ubuntu16.04

jmz19910110 gravatar imagejmz19910110 ( 2016-10-11 00:47:14 -0600 )edit