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.