Apollo  6.0
Open source self driving car software
select.h
Go to the documentation of this file.
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 
25 namespace apollo {
26 namespace perception {
27 namespace camera {
28 
29 class Select {
30  public:
31  Select() = default;
32 
33  bool Init(int rows, int cols);
34 
36  const std::vector<base::TrafficLightPtr> &refined_bboxes,
37  std::vector<base::TrafficLightPtr> *hdmap_bboxes);
38 
39  double Calc2dGaussianScore(base::Point2DI p1, base::Point2DI p2, float sigma1,
40  float sigma2);
41 
42  private:
44 };
45 } // namespace camera
46 } // namespace perception
47 } // namespace apollo
Definition: point.h:82
bool Init(int rows, int cols)
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: select.h:29
void SelectTrafficLights(const std::vector< base::TrafficLightPtr > &refined_bboxes, std::vector< base::TrafficLightPtr > *hdmap_bboxes)
double Calc2dGaussianScore(base::Point2DI p1, base::Point2DI p2, float sigma1, float sigma2)