adas_opencv_generate_rect_from_fusion_tracks()

Create OpenCV rectangles from ADAS fusion objects

Synopsis:

#include <adas/adas_opencv.h>
adas_error_t adas_opencv_generate_rect_from_fusion_tracks(const adas_fusion_object_data_t *founds,
                                                          const size_t nb_founds,
                                                          const adas_dimensions_t &src_size,
                                                          const adas_dimensions_t &dst_size,
                                                          cv::Rect **return_objects,
                                                          size_t *nb_objects)

Arguments:

founds
The ADAS fusion objects found.
nb_founds
The number of ADAS fusion objects found.
src_size
The dimensions of the original source image.
dst_size
The dimensions of the destination image that was used to obtain the tracks; supports this image being a scaled version of the original source image.
return_objects
Gets filled on success to the array of OpenCV rectangles generated.
nb_objects
Gets set on success to the number of OpenCV rectangles generated.

Library:

libadas

Returns:

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