Mat yuv(720,1280, CV_8UC3);//I am reading NV12 format from a camera
Mat rgb;
cvtColor(yuv,rgb,CV_YUV2RGB_NV12);
The resolution of rgb after conversion is 480X720
cvtColor(yuv,rgb,CV_YCrCb2RGB);
The resolution of rgb after conversion is 720X1280
However, using the above conversion I am not able to display a proper view of the images