Loading [MathJax]/extensions/TeX/AMSsymbols.js
Open3D (C++ API)  0.14.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
TrilinearDevoxelizeKernel.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-2021 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 // Based on PVCNN Library (MIT License):
28 // https://github.com/mit-han-lab/pvcnn
29 //
30 // Copyright (c) 2018 Zhijian Liu, Haotian Tang, Yujun Lin
31 //
32 // Permission is hereby granted, free of charge, to any person obtaining a copy
33 // of this software and associated documentation files (the "Software"), to deal
34 // in the Software without restriction, including without limitation the rights
35 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
36 // copies of the Software, and to permit persons to whom the Software is
37 // furnished to do so, subject to the following conditions:
38 //
39 // The above copyright notice and this permission notice shall be included in
40 // all copies or substantial portions of the Software.
41 //
42 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
43 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
44 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
45 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
46 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
47 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
48 // SOFTWARE.
49 // ----------------------------------------------------------------------------
50 
51 #pragma once
52 
72 void TrilinearDevoxelize(int b,
73  int c,
74  int n,
75  int r,
76  int r2,
77  int r3,
78  bool is_training,
79  const float *coords,
80  const float *feat,
81  int *inds,
82  float *wgts,
83  float *outs);
84 
97 void TrilinearDevoxelizeGrad(int b,
98  int c,
99  int n,
100  int r3,
101  const int *inds,
102  const float *wgts,
103  const float *grad_y,
104  float *grad_x);
void TrilinearDevoxelizeGrad(int b, int c, int n, int r3, const int *inds, const float *wgts, const float *grad_y, float *grad_x)
void TrilinearDevoxelize(int b, int c, int n, int r, int r2, int r3, bool is_training, const float *coords, const float *feat, int *inds, float *wgts, float *outs)