Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Is YUV2BGR_NV12 conversion is necessory to imshow an YUV image?

Hello

I have NV12 (YUV 4:2:0) image data. I am able to convert it to BGR through following code.

YUV = Mat(H+H/2, W, CV_8UC1, data);     // YUV Mat initialization
RGB = Mat(H, W, CV_8UC3);               // RGB Mat initialization
cvtColor(YUV, img, CV_YUV2BGR_NV12, 3); // color conversion  (computationally expensive for 4K)

Is it possible to skip cvtColor operation, because I find it computationally expensive. I just want to view the (YUV) image, I don't need new RGB mat.

Is YUV2BGR_NV12 conversion is necessory to imshow an YUV image?

Hello

I have NV12 (YUV 4:2:0) image data. I am able to convert it to BGR through following code.

YUV = Mat(H+H/2, W, CV_8UC1, data);     // YUV Mat initialization
RGB = Mat(H, W, CV_8UC3);               // RGB Mat initialization
cvtColor(YUV, img, CV_YUV2BGR_NV12, 3); // color 3);//color conversion  (computationally expensive for 4K)

Is it possible to skip cvtColor operation, because I find it computationally expensive. I just want to view the (YUV) image, I don't need new RGB mat.

Is YUV2BGR_NV12 conversion is necessory to imshow an YUV image?

Hello

I have NV12 (YUV 4:2:0) image data. I am able to convert it to BGR through following code.

YUV = Mat(H+H/2, W, CV_8UC1, data);    // YUV Mat initialization
RGB = Mat(H, W, CV_8UC3);              // RGB Mat initialization
cvtColor(YUV, img, CV_YUV2BGR_NV12, 3);//color conversion  (computationally expensive for 4K)

Is it possible to skip cvtColor operation, because I find it computationally expensive. I just want to view the (YUV) image, I don't need new RGB mat.

Is YUV2BGR_NV12 conversion is necessory to imshow an YUV image?

Hello

I have NV12 (YUV 4:2:0) image data. I am able to convert it to BGR through following code.

YUV = Mat(H+H/2, W, CV_8UC1, data);    // YUV Mat initialization
RGB = Mat(H, W, CV_8UC3);              // RGB Mat initialization
cvtColor(YUV, img, CV_YUV2BGR_NV12, 3);//color conversion  (computationally expensive for 4K)

Is it possible to skip cvtColor operation, because I find it computationally expensive. I just want to view the (YUV) image, I don't need new RGB mat.

Is YUV2BGR_NV12 conversion is necessory necessary to imshow an YUV image?

Hello

I have NV12 (YUV 4:2:0) image data. I am able to convert it to BGR through following code.

YUV = Mat(H+H/2, W, CV_8UC1, data);    // YUV Mat initialization
RGB = Mat(H, W, CV_8UC3);              // RGB Mat initialization
cvtColor(YUV, img, CV_YUV2BGR_NV12, 3);//color conversion  (computationally expensive for 4K)

Is it possible to skip cvtColor operation, because I find it computationally expensive. I just want to view the (YUV) image, I don't need new RGB mat.

Is YUV2BGR_NV12 conversion is necessary to imshow an YUV image?

Hello

I have NV12 (YUV 4:2:0) image data. I am able to convert it to BGR through following code.

YUV = Mat(H+H/2, W, CV_8UC1, data);    // YUV Mat initialization
RGB = Mat(H, W, CV_8UC3);              // RGB Mat initialization
cvtColor(YUV, img, CV_YUV2BGR_NV12, 3);//color conversion  (computationally expensive for 4K)

Is it possible to skip cvtColor operation, because I find it computationally expensive. I just want to view the (YUV) image, I don't need new RGB mat.

Is YUV2BGR_NV12 conversion is necessary to imshow an YUV image?

Hello

I have NV12 (YUV 4:2:0) image data. I am able to convert it to BGR through following code.

YUV = Mat(H+H/2, W, CV_8UC1, data); pointerToData);    // YUV Mat initialization
RGB = Mat(H, W, CV_8UC3);              // RGB Mat initialization
cvtColor(YUV, img, CV_YUV2BGR_NV12, 3);//color conversion  (computationally expensive for 4K)

Is it possible to skip cvtColor operation, because I find it computationally expensive. I just want to view the (YUV) image, I don't need new RGB mat.