Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 colorrgb_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

void colorrgb_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.

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.

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.