Apollo 11.0
自动驾驶开放平台
apollo::perception::lidar::AnchorMaskCuda类 参考

#include <anchor_mask_cuda.h>

apollo::perception::lidar::AnchorMaskCuda 的协作图:

Public 成员函数

 AnchorMaskCuda (const int num_threads, const int num_inds_for_scan, const int num_anchor, const float min_x_range, const float min_y_range, const float pillar_x_size, const float pillar_y_size, const int grid_x_size, const int grid_y_size)
 Constructor
 
void DoAnchorMaskCuda (int *dev_sparse_pillar_map, int *dev_cumsum_along_x, int *dev_cumsum_along_y, const float *dev_box_anchors_min_x, const float *dev_box_anchors_min_y, const float *dev_box_anchors_max_x, const float *dev_box_anchors_max_y, int *dev_anchor_mask)
 call cuda code for making anchor mask
 

详细描述

在文件 anchor_mask_cuda.h 第 46 行定义.

构造及析构函数说明

◆ AnchorMaskCuda()

apollo::perception::lidar::AnchorMaskCuda::AnchorMaskCuda ( const int  num_threads,
const int  num_inds_for_scan,
const int  num_anchor,
const float  min_x_range,
const float  min_y_range,
const float  pillar_x_size,
const float  pillar_y_size,
const int  grid_x_size,
const int  grid_y_size 
)

Constructor

参数
[in]num_threadsNumber of threads per block
[in]num_inds_for_scanNumber of indexes for scan(cumsum)
[in]num_anchorNumber of anchors in total
[in]min_x_rangeMinimum x value for point cloud
[in]min_y_rangeMinimum y value for point cloud
[in]pillar_x_sizeSize of x-dimension for a pillar
[in]pillar_y_sizeSize of y-dimension for a pillar
[in]grid_x_sizeNumber of pillars in x-coordinate
[in]grid_y_sizeNumber of pillars in y-coordinate

Captital variables never change after the compile

成员函数说明

◆ DoAnchorMaskCuda()

void apollo::perception::lidar::AnchorMaskCuda::DoAnchorMaskCuda ( int *  dev_sparse_pillar_map,
int *  dev_cumsum_along_x,
int *  dev_cumsum_along_y,
const float *  dev_box_anchors_min_x,
const float *  dev_box_anchors_min_y,
const float *  dev_box_anchors_max_x,
const float *  dev_box_anchors_max_y,
int *  dev_anchor_mask 
)

call cuda code for making anchor mask

参数
[in]dev_sparse_pillar_mapGrid map representation for pillar occupancy
[in]dev_cumsum_along_xArray for storing cumsum-ed dev_sparse_pillar_map values
[in]dev_cumsum_along_yArray for storing cumsum-ed dev_cumsum_along_y values
[in]dev_box_anchors_min_xArray for storing min x value for each anchor
[in]dev_box_anchors_min_yArray for storing min y value for each anchor
[in]dev_box_anchors_max_xArray for storing max x value for each anchor
[in]dev_box_anchors_max_yArray for storing max y value for each anchor
[in]dev_box_anchors_max_yArray for storing max y value for each anchor
[out]dev_anchor_maskAnchor mask for filtering the network output

dev_* means device memory. Make a mask for filtering pillar occupancy area


该类的文档由以下文件生成: