Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
opencv_image_functions.h File Reference

A small library with functions to convert between the Paparazzi used YUV422 arrays and the opencv image functions. More...

#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
+ Include dependency graph for opencv_image_functions.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void colorbgr_opencv_to_yuv422 (cv::Mat image, char *img, int width, int height)
 Converts cv::Mat with three channels to a YUV422 image. More...
 
void coloryuv_opencv_to_yuv422 (cv::Mat image, char *img, int width, int height)
 Converts cv::Mat with three channels YUV to a YUV422 image. More...
 
void grayscale_opencv_to_yuv422 (cv::Mat image, char *img, int width, int height)
 Converts cv::Mat with one to a YUV422 image. More...
 

Detailed Description

A small library with functions to convert between the Paparazzi used YUV422 arrays and the opencv image functions.

Definition in file opencv_image_functions.h.

Function Documentation

◆ colorbgr_opencv_to_yuv422()

void colorbgr_opencv_to_yuv422 ( cv::Mat  image,
char *  img,
int  width,
int  height 
)

Converts cv::Mat with three channels to a YUV422 image.

Note that the rgb function first converts to YUV, and then to YUV422 making this function slower than coloryuv_opencv_to_yuv422.

◆ coloryuv_opencv_to_yuv422()

void coloryuv_opencv_to_yuv422 ( cv::Mat  image,
char *  img,
int  width,
int  height 
)

Converts cv::Mat with three channels YUV to a YUV422 image.

◆ grayscale_opencv_to_yuv422()

void grayscale_opencv_to_yuv422 ( cv::Mat  image,
char *  img,
int  width,
int  height 
)

Converts cv::Mat with one to a YUV422 image.

The U and V channels are set to 127.