• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1R"(
2
3/*
4 * Copyright (c) 2017 Arm Limited.
5 *
6 * SPDX-License-Identifier: MIT
7 *
8 * Permission is hereby granted, free of charge, to any person obtaining a copy
9 * of this software and associated documentation files (the "Software"), to
10 * deal in the Software without restriction, including without limitation the
11 * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
12 * sell copies of the Software, and to permit persons to whom the Software is
13 * furnished to do so, subject to the following conditions:
14 *
15 * The above copyright notice and this permission notice shall be included in all
16 * copies or substantial portions of the Software.
17 *
18 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24 * SOFTWARE.
25 */
26#ifndef ARM_COMPUTE_TYPES_H
27#define ARM_COMPUTE_TYPES_H
28
29/** 2D Coordinates structure */
30typedef struct Coordinates2D
31{
32    int x; /**< The x coordinate. */
33    int y; /**< The y coordinate. */
34} Coordinates2D;
35
36/* Keypoint struct */
37typedef struct Keypoint
38{
39    int   x;               /**< The x coordinate. */
40    int   y;               /**< The y coordinate. */
41    float strength;        /**< The strength of the keypoint. Its definition is specific to the corner detector. */
42    float scale;           /**< Initialized to 0 by corner detectors. */
43    float orientation;     /**< Initialized to 0 by corner detectors. */
44    int   tracking_status; /**< A zero indicates a lost point. Initialized to 1 by corner detectors. */
45    float error;           /**< A tracking method specific error. Initialized to 0 by corner detectors. */
46} Keypoint;
47
48/** Detection window struct */
49typedef struct DetectionWindow
50{
51    ushort x;         /**< Top-left x coordinate */
52    ushort y;         /**< Top-left y coordinate */
53    ushort width;     /**< Width of the detection window */
54    ushort height;    /**< Height of the detection window */
55    ushort idx_class; /**< Index of the class */
56    float  score;     /**< Confidence value for the detection window */
57} DetectionWindow;
58#endif // ARM_COMPUTE_TYPES_H
59
60)"