Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to convert RGB image to YUV 4:2:2 format using opencv?

Hi,

I have a color image loaded as below

Mat image; image = imread("c:\test.jpg", CV_LOAD_IMAGE_COLOR);

How to convert this image to YUV 422 format. There is an option to convert image to YUV 420 format using cvtColor function but no option for YUV 422. Kindly help.