#include <i_ground.h>
◆ PlaneFitPointCandIndices()
| apollo::perception::algorithm::PlaneFitPointCandIndices::PlaneFitPointCandIndices |
( |
| ) |
|
|
inline |
◆ Clear()
| void apollo::perception::algorithm::PlaneFitPointCandIndices::Clear |
( |
| ) |
|
|
inline |
◆ operator[]() [1/4]
| int & apollo::perception::algorithm::PlaneFitPointCandIndices::operator[] |
( |
int |
i | ) |
|
|
inline |
◆ operator[]() [2/4]
| const int & apollo::perception::algorithm::PlaneFitPointCandIndices::operator[] |
( |
int |
i | ) |
const |
|
inline |
◆ operator[]() [3/4]
| int & apollo::perception::algorithm::PlaneFitPointCandIndices::operator[] |
( |
unsigned int |
i | ) |
|
|
inline |
◆ operator[]() [4/4]
| const int & apollo::perception::algorithm::PlaneFitPointCandIndices::operator[] |
( |
unsigned int |
i | ) |
const |
|
inline |
◆ Prune()
| int apollo::perception::algorithm::PlaneFitPointCandIndices::Prune |
( |
unsigned int |
min_nr_samples, |
|
|
unsigned int |
max_nr_samples |
|
) |
| |
在文件 i_ground.cc 第 69 行定义.
70 {
71 assert(min_nr_samples < max_nr_samples);
72 unsigned int size =
static_cast<unsigned int>(
indices.size());
73 unsigned int half = 0;
74 if (size > max_nr_samples) {
77
78
79
80
81
82
83
85 } else {
86 if (size > min_nr_samples) {
87 half = size >> 1;
88 while (half > min_nr_samples) {
89 half = half >> 1;
90 }
91 size = half << 1;
95 }
96 }
97 return static_cast<int>(
indices.size());
98}
void IRandomizedShuffle1(T *A, int n, int *s)
◆ PushIndex()
| void apollo::perception::algorithm::PlaneFitPointCandIndices::PushIndex |
( |
int |
i | ) |
|
|
inline |
◆ Reserve()
| void apollo::perception::algorithm::PlaneFitPointCandIndices::Reserve |
( |
unsigned int |
size | ) |
|
|
inline |
◆ Size()
| unsigned int apollo::perception::algorithm::PlaneFitPointCandIndices::Size |
( |
| ) |
const |
|
inline |
◆ indices
| std::vector<int> apollo::perception::algorithm::PlaneFitPointCandIndices::indices |
◆ random_seed
| int apollo::perception::algorithm::PlaneFitPointCandIndices::random_seed |
该结构体的文档由以下文件生成:
- modules/perception/common/algorithm/i_lib/pc/i_ground.h
- modules/perception/common/algorithm/i_lib/pc/i_ground.cc