Apollo 10.0
自动驾驶开放平台
apollo::perception::camera::HistogramEstimatorParams结构体 参考

#include <histogram_estimator.h>

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

Public 成员函数

 HistogramEstimatorParams ()
 
void Init ()
 
void operator= (const HistogramEstimatorParams &params)
 

Public 属性

int nr_bins_in_histogram = 0
 
float data_sp = 0.0f
 
float data_ep = 0.0f
 
float step_bin = 0.0f
 
std::vector< uint32_t > smooth_kernel = {}
 
int smooth_kernel_width = 0
 
int smooth_kernel_radius = 0
 
float hat_min_allowed = 0.0f
 
float hat_std_allowed = 0.0f
 
uint32_t histogram_mass_limit = 0
 
float decay_factor = 0.0f
 

详细描述

在文件 histogram_estimator.h29 行定义.

构造及析构函数说明

◆ HistogramEstimatorParams()

apollo::perception::camera::HistogramEstimatorParams::HistogramEstimatorParams ( )
inline

成员函数说明

◆ Init()

void apollo::perception::camera::HistogramEstimatorParams::Init ( )

在文件 histogram_estimator.cc24 行定义.

24 { // set default value
26 data_sp = 0;
27 data_ep = 255;
28 assert(nr_bins_in_histogram > 0);
29 assert(data_ep > data_sp);
30
31 step_bin = (data_ep - data_sp) / static_cast<float>(nr_bins_in_histogram);
32
33 smooth_kernel.clear();
34 smooth_kernel.push_back(1);
35 smooth_kernel.push_back(2);
36 smooth_kernel.push_back(1);
37 smooth_kernel_width = static_cast<int>(smooth_kernel.size());
39
40 hat_min_allowed = 0.2f;
41 hat_std_allowed = 6.0f;
43 decay_factor = 0.9f;
44}

◆ operator=()

void apollo::perception::camera::HistogramEstimatorParams::operator= ( const HistogramEstimatorParams params)
inline

在文件 histogram_estimator.h49 行定义.

49 {
50 nr_bins_in_histogram = params.nr_bins_in_histogram;
51
52 data_sp = params.data_sp;
53 data_ep = params.data_ep;
54 assert(nr_bins_in_histogram > 0 && data_ep > data_sp);
55
56 step_bin = (data_ep - data_sp) / static_cast<float>(nr_bins_in_histogram);
57
58 int w = static_cast<int>(params.smooth_kernel.size());
59 assert(w >= 1);
62 memcpy(smooth_kernel.data(), params.smooth_kernel.data(),
63 sizeof(uint32_t) * smooth_kernel_width);
65
66 hat_min_allowed = params.hat_min_allowed;
67 hat_std_allowed = params.hat_std_allowed;
68
69 histogram_mass_limit = params.histogram_mass_limit;
70 assert(histogram_mass_limit > 0);
71
72 decay_factor = params.decay_factor;
73 assert(decay_factor > 0.0f);
74 }

类成员变量说明

◆ data_ep

float apollo::perception::camera::HistogramEstimatorParams::data_ep = 0.0f

在文件 histogram_estimator.h35 行定义.

◆ data_sp

float apollo::perception::camera::HistogramEstimatorParams::data_sp = 0.0f

在文件 histogram_estimator.h34 行定义.

◆ decay_factor

float apollo::perception::camera::HistogramEstimatorParams::decay_factor = 0.0f

在文件 histogram_estimator.h47 行定义.

◆ hat_min_allowed

float apollo::perception::camera::HistogramEstimatorParams::hat_min_allowed = 0.0f

在文件 histogram_estimator.h42 行定义.

◆ hat_std_allowed

float apollo::perception::camera::HistogramEstimatorParams::hat_std_allowed = 0.0f

在文件 histogram_estimator.h43 行定义.

◆ histogram_mass_limit

uint32_t apollo::perception::camera::HistogramEstimatorParams::histogram_mass_limit = 0

在文件 histogram_estimator.h45 行定义.

◆ nr_bins_in_histogram

int apollo::perception::camera::HistogramEstimatorParams::nr_bins_in_histogram = 0

在文件 histogram_estimator.h33 行定义.

◆ smooth_kernel

std::vector<uint32_t> apollo::perception::camera::HistogramEstimatorParams::smooth_kernel = {}

在文件 histogram_estimator.h38 行定义.

38{};

◆ smooth_kernel_radius

int apollo::perception::camera::HistogramEstimatorParams::smooth_kernel_radius = 0

在文件 histogram_estimator.h40 行定义.

◆ smooth_kernel_width

int apollo::perception::camera::HistogramEstimatorParams::smooth_kernel_width = 0

在文件 histogram_estimator.h39 行定义.

◆ step_bin

float apollo::perception::camera::HistogramEstimatorParams::step_bin = 0.0f

在文件 histogram_estimator.h36 行定义.


该结构体的文档由以下文件生成: