Add the ssd post-processing block
Add the ssd post-processing block, including box decoding and
extractions, and non-max suppression (NMS).
This code is refactored based on
https://spacebeaker-review.googlesource.com/c/shodan/sw/vec-iree/+/24503.
The libraries can be built successfully, and the results have been validated.
Change-Id: I30cf18982def7a6926f40fb7b5831038d58604af
diff --git a/ssd_postprocess/nms.h b/ssd_postprocess/nms.h
new file mode 100644
index 0000000..183fc23
--- /dev/null
+++ b/ssd_postprocess/nms.h
@@ -0,0 +1,34 @@
+/*
+ * Copyright 2022 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef SSD_POSTPROCESS_NMS_H_
+#define SSD_POSTPROCESS_NMS_H_
+
+#include "ssd_postprocess/common.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif // __cplusplus
+
+// Perform non-maximum suppression algorithm to remove "similar" bounding boxes
+void nms(Boxes* boxes_in, Boxes* boxes_out, const int max_boxes,
+ const float iou_threshold);
+
+#ifdef __cplusplusS
+} // extern "C"
+#endif // __cplusplus
+
+#endif // SSD_POSTPROCESS_NMS_H_