Apollo  6.0
Open source self driving car software
Public Member Functions | List of all members
apollo::perception::lidar::NmsCuda Class Reference

#include <nms_cuda.h>

Collaboration diagram for apollo::perception::lidar::NmsCuda:
Collaboration graph

Public Member Functions

 NmsCuda (const int num_threads, const int num_box_corners, const float nms_overlap_threshold)
 Constructor. More...
 
void DoNmsCuda (const int host_filter_count, float *dev_sorted_box_for_nms, int *out_keep_inds, int *out_num_to_keep)
 GPU Non-Maximum Suppresion for network output. More...
 

Constructor & Destructor Documentation

◆ NmsCuda()

apollo::perception::lidar::NmsCuda::NmsCuda ( const int  num_threads,
const int  num_box_corners,
const float  nms_overlap_threshold 
)

Constructor.

Parameters
[in]num_threadsNumber of threads when launching cuda kernel
[in]num_box_cornersNumber of corners for 2D box
[in]nms_overlap_thresholdIOU threshold for NMS

Captital variables never change after the compile, Non-captital variables could be chaned through rosparam

Member Function Documentation

◆ DoNmsCuda()

void apollo::perception::lidar::NmsCuda::DoNmsCuda ( const int  host_filter_count,
float *  dev_sorted_box_for_nms,
int *  out_keep_inds,
int *  out_num_to_keep 
)

GPU Non-Maximum Suppresion for network output.

Parameters
[in]host_filter_countNumber of filtered output
[in]dev_sorted_box_for_nmsBounding box output sorted by score
[out]out_keep_indsIndexes of selected bounding box
[out]out_num_to_keepNumber of kept bounding boxes

NMS in GPU and postprocessing for selecting box in CPU


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