1 | initial version |
See the function cvtColor with the following (undocumented) flag: COLOR_YUV2RGB_Y422 which is the same as COLOR_YUV2RGB_UYVY. If you need other flags, don't hesitate to have a look at imgproc.hpp which shows all of them.
// Convert from yuv to rgb
cv::cvtColor( yuv, rgb, COLOR_YUV2RGB_UYVY );
// Convert from rgb to yuv
cv::cvtColor( rgb, yuv, COLOR_RGB2YUV );