Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to Convert RGB to YUV(NV21)

I have loaded a Jpeg image by using [ imread ()] function. Now, I want to convert this image to YUV(NV21) format. I found that [ cvtColorTwoPlane( InputArray src1, InputArray src2, OutputArray dst, int code ) ] perform the operation YUV to RGB. So, Could you please let me know how can I convert RGB to YUV(NV21)?

Thanks in Advance.