blob: 9bfd324247363cdb4e3baf74c59f027ad93bb085 [file] [log] [blame]
Lun Dong3470dd02022-08-11 14:50:01 -07001/*
Lun Dong26c106a2023-10-24 09:14:25 -07002 * Copyright 2023 Google LLC
Lun Dong3470dd02022-08-11 14:50:01 -07003 *
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 *
Lun Dong26c106a2023-10-24 09:14:25 -07008 * http://www.apache.org/licenses/LICENSE-2.0
Lun Dong3470dd02022-08-11 14:50:01 -07009 *
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
17#ifndef SSD_POSTPROCESS_NMS_H_
18#define SSD_POSTPROCESS_NMS_H_
19
20#include "ssd_postprocess/common.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif // __cplusplus
25
26// Perform non-maximum suppression algorithm to remove "similar" bounding boxes
27void nms(Boxes* boxes_in, Boxes* boxes_out, const int max_boxes,
28 const float iou_threshold);
29
30#ifdef __cplusplusS
31} // extern "C"
32#endif // __cplusplus
33
34#endif // SSD_POSTPROCESS_NMS_H_