Apollo 11.0
自动驾驶开放平台
roi_filter.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 <memory>
19#include <vector>
20
24
25namespace apollo {
26namespace perception {
27namespace algorithm {
28
29// @brief: whether a point is in ROI.
31 const std::shared_ptr<const apollo::perception::base::HdmapStruct> roi,
33
34// @brief: whether an object's center is in ROI.
36 const std::shared_ptr<const apollo::perception::base::HdmapStruct> roi,
37 const std::shared_ptr<const apollo::perception::base::Object> obj);
38
39// @brief: whether an object's bbox is in ROI.
41 const std::shared_ptr<const apollo::perception::base::HdmapStruct> roi,
42 const std::shared_ptr<const apollo::perception::base::Object> obj);
43
44// @brief: whether objects' center are in ROI. If return True,
45// you can get objects in ROI by param valid_objects.
47 const std::shared_ptr<const apollo::perception::base::HdmapStruct> roi,
48 const std::vector<std::shared_ptr<apollo::perception::base::Object>>& objs,
49 std::vector<std::shared_ptr<apollo::perception::base::Object>>* valid_objs);
50
51} // namespace algorithm
52} // namespace perception
53} // namespace apollo
bool IsObjectInRoi(const HdmapStructConstPtr roi, const ObjectConstPtr obj)
Definition roi_filter.cc:51
bool IsPtInRoi(const HdmapStructConstPtr roi, const PointD pt)
Definition roi_filter.cc:37
bool ObjectInRoiCheck(const HdmapStructConstPtr roi, const std::vector< ObjectPtr > &objects, std::vector< ObjectPtr > *valid_objects)
Definition roi_filter.cc:97
bool IsObjectBboxInRoi(const HdmapStructConstPtr roi, const ObjectConstPtr obj)
Definition roi_filter.cc:59
class register implement
Definition arena_queue.h:37