Open3D (C++ API)  0.12.0
IoU.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // The MIT License (MIT)
5 //
6 // Copyright (c) 2018 www.open3d.org
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 deal
10 // in the Software without restriction, including without limitation the rights
11 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12 // 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
16 // all 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
23 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
24 // IN THE SOFTWARE.
25 // ----------------------------------------------------------------------------
26 
27 #pragma once
28 
29 namespace open3d {
30 namespace ml {
31 namespace contrib {
32 
33 #ifdef BUILD_CUDA_MODULE
34 void IoUBevCUDAKernel(const float *boxes_a,
42  const float *boxes_b,
43  float *iou,
44  int num_a,
45  int num_b);
46 
52 void IoU3dCUDAKernel(const float *boxes_a,
53  const float *boxes_b,
54  float *iou,
55  int num_a,
56  int num_b);
57 
58 #endif
59 
67 void IoUBevCPUKernel(const float *boxes_a,
68  const float *boxes_b,
69  float *iou,
70  int num_a,
71  int num_b);
72 
78 void IoU3dCPUKernel(const float *boxes_a,
79  const float *boxes_b,
80  float *iou,
81  int num_a,
82  int num_b);
83 
84 } // namespace contrib
85 } // namespace ml
86 } // namespace open3d
Definition: PinholeCameraIntrinsic.cpp:35
void IoU3dCPUKernel(const float *boxes_a, const float *boxes_b, float *iou, int num_a, int num_b)
Definition: IoU.cpp:52
void IoUBevCPUKernel(const float *boxes_a, const float *boxes_b, float *iou, int num_a, int num_b)
Definition: IoU.cpp:37