#include <spp_engine.h>
◆ SppEngine()
| apollo::perception::lidar::SppEngine::SppEngine |
( |
| ) |
|
|
default |
◆ ~SppEngine()
| apollo::perception::lidar::SppEngine::~SppEngine |
( |
| ) |
|
|
default |
◆ clusters() [1/2]
◆ clusters() [2/2]
| const SppClusterList & apollo::perception::lidar::SppEngine::clusters |
( |
| ) |
const |
|
inline |
◆ GetSppData() [1/2]
| SppData & apollo::perception::lidar::SppEngine::GetSppData |
( |
| ) |
|
|
inline |
◆ GetSppData() [2/2]
| const SppData & apollo::perception::lidar::SppEngine::GetSppData |
( |
| ) |
const |
|
inline |
◆ Init()
| void apollo::perception::lidar::SppEngine::Init |
( |
size_t |
width, |
|
|
size_t |
height, |
|
|
float |
range, |
|
|
const SppParams & |
param = SppParams(), |
|
|
const std::string & |
sensor_name = "velodyne64" |
|
) |
| |
在文件 spp_engine.cc 第 26 行定义.
27 {
28
29 detector_2d_cc_.
Init(
static_cast<int>(height),
static_cast<int>(width));
31 static_cast<float>(height) / (2.f * range),
33
34 labels_2d_.
Init(width, height, sensor_name);
36
37 params_ = param;
38
39
42 range_ = range;
43
49 return true;
50 });
52}
const Dtype * cpu_data() const
void Bind(const std::function< bool()> &func)
void SetData(const float *const *prob_map, const float *offset_map, float scale, float objectness_threshold)
void Init(int rows, int cols)
void Init(size_t width, size_t height, const std::string &sensor_name="velodyne64")
void InitRangeMask(float range, float boundary_distance)
uint32_t height
Height of point cloud
uint32_t width
Width of point cloud
float objectness_threshold
float ** obs_prob_data_ref
base::Blob< float > * heading_pt_blob
base::Blob< float > * classify_pt_blob
base::Blob< float > * height_pt_blob
base::Blob< float > * confidence_pt_blob
◆ ProcessForegroundSegmentation()
在文件 spp_engine.cc 第 125 行定义.
126 {
128 ProcessConnectedComponentCluster(point_cloud, mask_);
129 AINFO <<
"Foreground: " << clusters_.
size() <<
" clusters";
130 return clusters_.
size();
131}
◆ RemoveGroundPointsInForegroundCluster()
在文件 spp_engine.cc 第 133 行定义.
136 {
137 mask_.
Set(full_point_cloud->size(), 0);
141
142 for (
size_t i = 0; i < clusters_.
size(); ++i) {
143 clusters_[static_cast<int>(i)]->RemovePoints(mask_);
144 }
146 return clusters_.
size();
147}
void AddIndices(const base::PointIndices &indices, int value=1)
void Set(size_t size, int init_value)
void RemoveIndicesOfIndices(const base::PointIndices &indices, const base::PointIndices &indices_of_indices)
void RemoveEmptyClusters()
该类的文档由以下文件生成:
- modules/perception/lidar_detection/detector/cnn_segmentation/spp_engine/spp_engine.h
- modules/perception/lidar_detection/detector/cnn_segmentation/spp_engine/spp_engine.cc