32 #include <opencv2/core/core.hpp>
33 #include <opencv2/imgproc/imgproc.hpp>
41 Mat M(height, width, CV_8UC2, img);
44 #if OPENCVDEMO_GRAYSCALE
46 cvtColor(M, image, CV_YUV2GRAY_Y422);
49 Canny(image, image, edgeThresh, edgeThresh * 3);
55 cvtColor(M, image, CV_YUV2BGR_Y422);
57 blur(image, image, Size(5, 5));
int opencv_example(char *img, int width, int height)
void grayscale_opencv_to_yuv422(Mat image, char *img, int width, int height)
void colorbgr_opencv_to_yuv422(Mat image, char *img, int width, int height)
A small library with functions to convert between the Paparazzi used YUV422 arrays and the opencv ima...