Paparazzi UAS
v5.15_devel-230-gc96ce27
Paparazzi is a free software Unmanned Aircraft System.
|
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>
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... | |
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.
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.
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.