pcod-common v1.0.0
Shared preprocessing and postprocessing for point-cloud object detection
Loading...
Searching...
No Matches
nms.hpp
Go to the documentation of this file.
1// Copyright Institute for Automotive Engineering (ika), RWTH Aachen University
2// SPDX-License-Identifier: Apache-2.0
3
4#pragma once
5
6#include <vector>
7
9
10namespace pcod_common {
11
13struct NmsConfig {
14 std::vector<float> score_thresholds;
15 float iou_threshold = 0.1f;
16 int max_detections = 64;
18};
19
24void ApplyRotatedNms(std::vector<BoundingBox>& bboxes, const NmsConfig& config);
25
26} // namespace pcod_common
void ApplyRotatedNms(std::vector< BoundingBox > &bboxes, const NmsConfig &config)
Definition nms.cpp:12
float iou_threshold
IoU above which a lower-scored box is suppressed.
Definition nms.hpp:15
std::vector< float > score_thresholds
Per-class thresholds, or one threshold shared by all classes.
Definition nms.hpp:14
int max_detections
Maximum number of boxes retained.
Definition nms.hpp:16
float internal_score_threshold
Score pivot used when rescaling class thresholds.
Definition nms.hpp:17