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

asked 2015-09-15 07:21:05 -0500

pravin gravatar image


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.

edit retag flag offensive close merge delete


have a look in this link

theodore gravatar imagetheodore ( 2015-09-15 10:19:47 -0500 )edit