adas_opencv_create_mat_from_pixel_buffer()

Create an OpenCV Mat instance from an ADAS pixel buffer

Synopsis:

#include <adas/adas_opencv.h>
adas_error_t adas_opencv_create_mat_from_pixel_buffer(adas_pixel_buffer_handle_t pixel_buffer_handle,
                                                      cv::Mat &mat)

Arguments:

pixel_buffer_handle
The pixel buffer to convert.
mat
On success, gets set to the Mat instance created.

Library:

libadas

Description:

The Mat instance must be deleted in OpenCV when no longer required.

Returns:

ADAS_EOK when the function successfully completes, otherwise another adas_error_t value that provides the reason that the call failed.