Apollo 10.0
自动驾驶开放平台
apollo::perception::camera::ObjPostProcessor类 参考

#include <obj_postprocessor.h>

apollo::perception::camera::ObjPostProcessor 的协作图:

Public 成员函数

 ObjPostProcessor ()=default
 
virtual ~ObjPostProcessor ()=default
 
void Init (const float *k_mat, int width, int height)
 process 2d 3d object
 
bool PostProcessObjWithGround (const ObjPostProcessorOptions &options, float center[3], float hwl[3], float *ry)
 init params
 
bool PostProcessObjWithDispmap (const ObjPostProcessorOptions &options, float center[3], float hwl[3], float *ry)
 none
 

详细描述

在文件 obj_postprocessor.h63 行定义.

构造及析构函数说明

◆ ObjPostProcessor()

apollo::perception::camera::ObjPostProcessor::ObjPostProcessor ( )
default

◆ ~ObjPostProcessor()

virtual apollo::perception::camera::ObjPostProcessor::~ObjPostProcessor ( )
virtualdefault

成员函数说明

◆ Init()

void apollo::perception::camera::ObjPostProcessor::Init ( const float *  k_mat,
int  width,
int  height 
)
inline

process 2d 3d object

参数
k_mat3x3 matrix
widthimage width
heightimage height

在文件 obj_postprocessor.h74 行定义.

74 {
75 memcpy(k_mat_, k_mat, sizeof(float) * 9);
76 width_ = width;
77 height_ = height;
78 }
uint32_t height
Height of point cloud
uint32_t width
Width of point cloud

◆ PostProcessObjWithDispmap()

bool apollo::perception::camera::ObjPostProcessor::PostProcessObjWithDispmap ( const ObjPostProcessorOptions options,
float  center[3],
float  hwl[3],
float *  ry 
)

none

参数
options
centercenter of the object
hwlthe hwl of the object
ryry of the object
返回
true
false

在文件 obj_postprocessor.cc59 行定义.

61 {
62 return true;
63}

◆ PostProcessObjWithGround()

bool apollo::perception::camera::ObjPostProcessor::PostProcessObjWithGround ( const ObjPostProcessorOptions options,
float  center[3],
float  hwl[3],
float *  ry 
)

init params

参数
optionsoptions for processing
centercenter of the object
hwlthe hwl of the object
ryry of the object
返回
true
false

在文件 obj_postprocessor.cc36 行定义.

38 {
39 memcpy(hwl, options.hwl, sizeof(float) * 3);
40 float bbox[4] = {0};
41 memcpy(bbox, options.bbox, sizeof(float) * 4);
42 *ry = options.ry;
43
44 // soft constraints
45 bool adjust_soft =
46 AdjustCenterWithGround(bbox, hwl, *ry, options.plane, center);
47 if (center[2] > params_.dist_far) {
48 return adjust_soft;
49 }
50
51 // hard constraints
52 bool adjust_hard = PostRefineCenterWithGroundBoundary(
53 bbox, hwl, *ry, options.plane, options.line_segs, center,
54 options.check_lowerbound);
55
56 return adjust_soft || adjust_hard;
57}

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