From 6940dd720ebb6b3d1df8ca203ab696daefe58189 Mon Sep 17 00:00:00 2001 From: Jim Flynn Date: Fri, 20 Mar 2020 12:25:56 +0000 Subject: renamed Documentation folder 20.02 and added .nojekyll file Signed-off-by: Jim Flynn --- 20.02/_object_detection_common_8hpp_source.xhtml | 113 +++++++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 20.02/_object_detection_common_8hpp_source.xhtml (limited to '20.02/_object_detection_common_8hpp_source.xhtml') diff --git a/20.02/_object_detection_common_8hpp_source.xhtml b/20.02/_object_detection_common_8hpp_source.xhtml new file mode 100644 index 0000000000..75e6082862 --- /dev/null +++ b/20.02/_object_detection_common_8hpp_source.xhtml @@ -0,0 +1,113 @@ + + + + + + + + + + + + + +ArmNN: tests/ObjectDetectionCommon.hpp Source File + + + + + + + + + + + + + + + + +
+
+ + + + ArmNN + + + +
+
+  20.02 +
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ +
+
+
ObjectDetectionCommon.hpp
+
+
+Go to the documentation of this file.
1 //
2 // Copyright © 2017 Arm Ltd. All rights reserved.
3 // SPDX-License-Identifier: MIT
4 //
5 #pragma once
6 
7 #include <string>
8 #include <utility>
9 
10 namespace
11 {
12 
13 struct BoundingBox
14 {
15  BoundingBox()
16  : BoundingBox(0.0f, 0.0f, 0.0f, 0.0f)
17  {}
18 
19  BoundingBox(float xMin, float yMin, float xMax, float yMax)
20  : m_XMin(xMin)
21  , m_YMin(yMin)
22  , m_XMax(xMax)
23  , m_YMax(yMax)
24  {}
25 
26  float m_XMin;
27  float m_YMin;
28  float m_XMax;
29  float m_YMax;
30 };
31 
32 struct DetectedObject
33 {
34  DetectedObject(float detectedClass,
35  const BoundingBox& boundingBox,
36  float confidence)
37  : m_Class(detectedClass)
38  , m_BoundingBox(boundingBox)
39  , m_Confidence(confidence)
40  {}
41 
42  bool operator<(const DetectedObject& other) const
43  {
44  return m_Confidence < other.m_Confidence ||
45  (m_Confidence == other.m_Confidence && m_Class < other.m_Class);
46  }
47 
48  float m_Class;
49  BoundingBox m_BoundingBox;
50  float m_Confidence;
51 };
52 
53 using ObjectDetectionInput = std::pair<std::string, std::vector<DetectedObject>>;
54 
55 } // anonymous namespace
+
+ + + + -- cgit v1.2.1