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

#include <postprocess_cuda.h>

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

Public Member Functions

 PostprocessCuda (const float float_min, const float float_max, const int num_anchor, const int num_class, const float score_threshold, const int num_threads, const float nms_overlap_threshold, const int num_box_corners, const int num_output_box_feature)
 Constructor. More...
 
void DoPostprocessCuda (const float *rpn_box_output, const float *rpn_cls_output, const float *rpn_dir_output, int *dev_anchor_mask, const float *dev_anchors_px, const float *dev_anchors_py, const float *dev_anchors_pz, const float *dev_anchors_dx, const float *dev_anchors_dy, const float *dev_anchors_dz, const float *dev_anchors_ro, float *dev_filtered_box, float *dev_filtered_score, int *dev_filtered_label, int *dev_filtered_dir, float *dev_box_for_nms, int *dev_filter_count, std::vector< float > *out_detection, std::vector< int > *out_label)
 Postprocessing for the network output. More...
 

Constructor & Destructor Documentation

◆ PostprocessCuda()

apollo::perception::lidar::PostprocessCuda::PostprocessCuda ( const float  float_min,
const float  float_max,
const int  num_anchor,
const int  num_class,
const float  score_threshold,
const int  num_threads,
const float  nms_overlap_threshold,
const int  num_box_corners,
const int  num_output_box_feature 
)

Constructor.

Parameters
[in]float_minThe lowest float value
[in]float_maxThe maximum float value
[in]num_anchorNumber of anchors in total
[in]num_classNumber of object's classes
[in]score_thresholdScore threshold for filtering output
[in]num_threadsNumber of threads when launching cuda kernel
[in]nms_overlap_thresholdIOU threshold for NMS
[in]num_box_cornersNumber of box's corner
[in]num_output_box_featureNumber of output box's feature

Captital variables never change after the compile, non-capital variables could be changed through rosparam

Member Function Documentation

◆ DoPostprocessCuda()

void apollo::perception::lidar::PostprocessCuda::DoPostprocessCuda ( const float *  rpn_box_output,
const float *  rpn_cls_output,
const float *  rpn_dir_output,
int *  dev_anchor_mask,
const float *  dev_anchors_px,
const float *  dev_anchors_py,
const float *  dev_anchors_pz,
const float *  dev_anchors_dx,
const float *  dev_anchors_dy,
const float *  dev_anchors_dz,
const float *  dev_anchors_ro,
float *  dev_filtered_box,
float *  dev_filtered_score,
int *  dev_filtered_label,
int *  dev_filtered_dir,
float *  dev_box_for_nms,
int *  dev_filter_count,
std::vector< float > *  out_detection,
std::vector< int > *  out_label 
)

Postprocessing for the network output.

Parameters
[in]rpn_box_outputBox predictions from the network output
[in]rpn_cls_outputClass predictions from the network output
[in]rpn_dir_outputDirection predictions from the network output
[in]dev_anchor_maskAnchor mask for filtering the network output
[in]dev_anchors_pxX-coordinate values for corresponding anchors
[in]dev_anchors_pyY-coordinate values for corresponding anchors
[in]dev_anchors_pzZ-coordinate values for corresponding anchors
[in]dev_anchors_dxX-dimension values for corresponding anchors
[in]dev_anchors_dyY-dimension values for corresponding anchors
[in]dev_anchors_dzZ-dimension values for corresponding anchors
[in]dev_anchors_roRotation values for corresponding anchors
[in]dev_filtered_boxFiltered box predictions
[in]dev_filtered_scoreFiltered score predictions
[in]dev_filtered_labelFiltered label predictions
[in]dev_filtered_dirFiltered direction predictions
[in]dev_box_for_nmsDecoded boxes in min_x min_y max_x max_y represenation from pose and dimension
[in]dev_filter_countThe number of filtered output
[out]out_detectionOutput bounding boxes
[out]out_labelOutput labels of objects

dev_* represents device memory allocated variables


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