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 (see adas_fusion_object_data_t).
nb_founds
The number of ADAS fusion objects found.
src_size
The dimensions of the original source image (see adas_dimensions_t).
dst_size
The dimensions of the destination image that was used to obtain the tracks; this supports the image being a scaled version of the original source image.
return_objects
On success, the referenced memory points to an array of OpenCV rectangles generated.
nb_objects
On success, the referenced memory contains 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.