Fawkes API  Fawkes Development Version
firevision::CvMatAdapter Class Reference

Adapter for OpenCV Mat. More...

#include <>>

Static Public Member Functions

static void convert_image_bgr (unsigned char *buffer, cv::Mat &image)
 Convert image from buffer into cv::Mat. More...
 
static void convert_image_yuv422_planar (cv::Mat &image, unsigned char *buffer)
 Convert image from cv::Mat into buffer. More...
 

Detailed Description

Adapter for OpenCV Mat.

Conversion routines from FireVision buffers to OpenCV Mat.

Author
Sebastian Eltester

Definition at line 33 of file cvmatadapter.h.

Member Function Documentation

◆ convert_image_bgr()

void firevision::CvMatAdapter::convert_image_bgr ( unsigned char *  buffer,
cv::Mat &  image 
)
static

Convert image from buffer into cv::Mat.

Parameters
bufferYUV422_PLANAR buffer of the same size as image
imagecv::Mat the result will be written to in BGR notation

Definition at line 44 of file cvmatadapter.cpp.

Referenced by firevision::FacesClassifier::classify().

◆ convert_image_yuv422_planar()

void firevision::CvMatAdapter::convert_image_yuv422_planar ( cv::Mat &  image,
unsigned char *  buffer 
)
static

Convert image from cv::Mat into buffer.

Parameters
imagecv::Mat with BGR notation
bufferYUV422_PLANAR of the same size to write the converted cv::Mat

Definition at line 60 of file cvmatadapter.cpp.


The documentation for this class was generated from the following files: