adas_opencv_generate_fusion_tracks_from_rect()

Create ADAS fusion objects from rectangles extracted by OpenCV

Synopsis:

#include <adas/adas_opencv.h>
adas_error_t adas_opencv_generate_fusion_tracks_from_rect(const std::vector< cv::Rect > &founds,
                                                          const cv::Point &src_offset,
                                                          const cv::Size &src_size,
                                                          const cv::Size &dst_size,
                                                          adas_fusion_object_type_t type,
                                                          adas_fusion_object_data_t **return_objects,
                                                          size_t *nb_objects)

Arguments:

founds
The rectangles around the objects found in OpenCV.
src_offset
Coordinates of an offset into the original source image to serve as the new origin.
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.
type
The type of objects found.
return_objects
Gets filled on success to the array of fusion objects generated.
nb_objects
Gets set on success to the number of fusion objects generated.

Library:

libadas

Description:

These ADAS fusion objects can then be passed to the function adas_fusion_create_buffer_from_tracking() to create the fusion buffer output for the algorithm.

Returns:

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