#include <frame_list.h>
◆ get()
const std::shared_ptr< base::Blob< float > > apollo::perception::camera::SimilarMap::get |
( |
int |
frame1, |
|
|
int |
frame2 |
|
) |
| const |
|
inline |
在文件 frame_list.h 第 92 行定义.
92 {
94 }
std::vector< std::vector< std::shared_ptr< base::Blob< float > > > > map_sim
◆ Init()
EIGEN_MAKE_ALIGNED_OPERATOR_NEW bool apollo::perception::camera::SimilarMap::Init |
( |
int |
dim, |
|
|
int |
gpu_id = 0 , |
|
|
int |
init_size = 128 |
|
) |
| |
|
inline |
在文件 frame_list.h 第 66 行定义.
66 {
68 return false;
69 }
70
72
75 for (
int i = 0; i <
dim; ++i) {
77 for (
int j = 0; j <
dim; ++j) {
78 map_sim[i][j].reset(
new base::Blob<float>);
79 map_sim[i][j]->Reshape({init_size, init_size});
80
83 }
84 }
85 return true;
86 }
static bool set_device_id(int device_id)
◆ set()
void apollo::perception::camera::SimilarMap::set |
( |
int |
frame1, |
|
|
int |
frame2, |
|
|
std::shared_ptr< base::Blob< float > > |
sim |
|
) |
| |
|
inline |
在文件 frame_list.h 第 88 行定义.
88 {
90 }
for dynamic models (perfect model excluded)
◆ sim()
在文件 frame_list.h 第 96 行定义.
96 {
97 auto blob =
get(p1.frame_id, p2.frame_id);
98 return *(blob->cpu_data() + blob->offset(p1.patch_id, p2.patch_id));
99 }
const std::shared_ptr< base::Blob< float > > get(int frame1, int frame2) const
◆ dim
int apollo::perception::camera::SimilarMap::dim |
◆ map_sim
std::vector<std::vector<std::shared_ptr<base::Blob<float> > > > apollo::perception::camera::SimilarMap::map_sim |
该结构体的文档由以下文件生成: