Apollo 11.0
自动驾驶开放平台
select.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2018 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
16#pragma once
17
18#include <utility>
19#include <vector>
20
24
25namespace apollo {
26namespace perception {
27namespace trafficlight {
28
29class Select {
30public:
35 Select() = default;
44 bool Init(int rows, int cols);
52 const std::vector<base::TrafficLightPtr> &refined_bboxes,
53 std::vector<base::TrafficLightPtr> *hdmap_bboxes);
63 double Calc2dGaussianScore(base::Point2DI p1, base::Point2DI p2, float sigma1, float sigma2);
64
65private:
67};
68} // namespace trafficlight
69} // namespace perception
70} // namespace apollo
void SelectTrafficLights(const std::vector< base::TrafficLightPtr > &refined_bboxes, std::vector< base::TrafficLightPtr > *hdmap_bboxes)
Choose traffic lights using Gaussian calculation scores.
Definition select.cc:41
double Calc2dGaussianScore(base::Point2DI p1, base::Point2DI p2, float sigma1, float sigma2)
Calculate 2d Gaussian score.
Definition select.cc:34
bool Init(int rows, int cols)
Initialize select object parameters.
Definition select.cc:24
Select()=default
Construct a new select object.
class register implement
Definition arena_queue.h:37