Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

YUYV422 to BGR

Good morning! Can anybody share a code sample how to make conversion between YUYV422 and BGR pixel formats? 1) This way i load the pixel data: cv::Mat cameraFrame = cv::Mat(h, w, CV_8UC3,(char)YUYV422_data); 2) i need to convert cv::Mat YUYV422 to cv::Mat BGR 3) after processing i need to convert cv::Mat BGR to (char)YUYV422_data.

Thank you!

YUYV422 to BGR

Good morning! Can anybody share a code sample how to make conversion between YUYV422 and BGR pixel formats?

1) This way i load the pixel data: cv::Mat cameraFrame = cv::Mat(h, w, CV_8UC3,(char)YUYV422_data);
w,CV_8UC3,(char*)YUYV422_data); 
2) i need to convert cv::Mat YUYV422  to cv::Mat BGR
BGR 
3) after processing i need to convert cv::Mat BGR to (char)YUYV422_data.

(char*)YUYV422_data.

Thank you!

YUYV422 to BGR

Good morning! Can anybody share a code sample how help me to make conversion convert between YUYV422 and BGR pixel formats?

1) This way i load the pixel data: cv::Mat cameraFrame = cv::Mat(h, w,CV_8UC3,(char*)YUYV422_data); 
2) i need to convert cv::Mat YUYV422  to cv::Mat BGR 
3) after processing i need to convert cv::Mat BGR to (char*)YUYV422_data.

Thank you!