YUYV422 to BGR
Good morning! Can anybody help me to 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!