Loading [MathJax]/extensions/TeX/AMSsymbols.js
Open3D (C++ API)  0.15.1
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Image.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 #pragma once
28 
29 #include "open3d/core/Tensor.h"
30 
31 namespace open3d {
32 namespace t {
33 namespace geometry {
34 namespace kernel {
35 namespace image {
36 
37 void To(const core::Tensor &src,
38  core::Tensor &dst,
39  double scale,
40  double offset);
41 
42 void ClipTransform(const core::Tensor &src,
43  core::Tensor &dst,
44  float scale,
45  float min_value,
46  float max_value,
47  float clip_fill = 0.0f);
48 
49 void PyrDownDepth(const core::Tensor &src,
50  core::Tensor &dst,
51  float diff_threshold,
52  float invalid_fill);
53 
54 void CreateVertexMap(const core::Tensor &src,
55  core::Tensor &dst,
56  const core::Tensor &intrinsics,
57  float invalid_fill);
58 
59 void CreateNormalMap(const core::Tensor &src,
60  core::Tensor &dst,
61  float invalid_fill);
62 
63 void ColorizeDepth(const core::Tensor &src,
64  core::Tensor &dst,
65  float scale,
66  float min_value,
67  float max_value);
68 
69 void ToCPU(const core::Tensor &src,
70  core::Tensor &dst,
71  double scale,
72  double offset);
73 
74 void ClipTransformCPU(const core::Tensor &src,
75  core::Tensor &dst,
76  float scale,
77  float min_value,
78  float max_value,
79  float clip_fill = 0.0f);
80 
81 void PyrDownDepthCPU(const core::Tensor &src,
82  core::Tensor &dst,
83  float diff_threshold,
84  float invalid_fill);
85 
86 void CreateVertexMapCPU(const core::Tensor &src,
87  core::Tensor &dst,
88  const core::Tensor &intrinsics,
89  float invalid_fill);
90 
91 void CreateNormalMapCPU(const core::Tensor &src,
92  core::Tensor &dst,
93  float invalid_fill);
94 
95 void ColorizeDepthCPU(const core::Tensor &src,
96  core::Tensor &dst,
97  float scale,
98  float min_value,
99  float max_value);
100 
101 #ifdef BUILD_CUDA_MODULE
102 void ToCUDA(const core::Tensor &src,
103  core::Tensor &dst,
104  double scale,
105  double offset);
106 
107 void ClipTransformCUDA(const core::Tensor &src,
108  core::Tensor &dst,
109  float scale,
110  float min_value,
111  float max_value,
112  float clip_fill = 0.0f);
113 
114 void PyrDownDepthCUDA(const core::Tensor &src,
115  core::Tensor &dst,
116  float diff_threshold,
117  float invalid_fill);
118 
119 void CreateVertexMapCUDA(const core::Tensor &src,
120  core::Tensor &dst,
121  const core::Tensor &intrinsics,
122  float invalid_fill);
123 
124 void CreateNormalMapCUDA(const core::Tensor &src,
125  core::Tensor &dst,
126  float invalid_fill);
127 
128 void ColorizeDepthCUDA(const core::Tensor &src,
129  core::Tensor &dst,
130  float scale,
131  float min_value,
132  float max_value);
133 
134 #endif
135 } // namespace image
136 } // namespace kernel
137 } // namespace geometry
138 } // namespace t
139 } // namespace open3d
void ToCPU(const core::Tensor &src, core::Tensor &dst, double scale, double offset)
Definition: ImageImpl.h:52
void ColorizeDepth(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value)
Definition: Image.cpp:111
void ColorizeDepthCPU(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value)
Definition: ImageImpl.h:330
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle image_handle timestamp_usec white_balance image_handle k4a_device_configuration_t config device_handle char size_t serial_number_size bool int32_t int32_t max_value
Definition: K4aPlugin.cpp:658
void PyrDownDepth(const core::Tensor &src, core::Tensor &dst, float diff_threshold, float invalid_fill)
Definition: Image.cpp:67
void CreateVertexMap(const core::Tensor &src, core::Tensor &dst, const core::Tensor &intrinsics, float invalid_fill)
Definition: Image.cpp:81
void To(const core::Tensor &src, core::Tensor &dst, double scale, double offset)
Definition: Image.cpp:36
int offset
Definition: FilePCD.cpp:64
void PyrDownDepthCPU(const core::Tensor &src, core::Tensor &dst, float diff_threshold, float invalid_fill)
Definition: ImageImpl.h:145
void ClipTransform(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value, float clip_fill)
Definition: Image.cpp:50
void CreateVertexMapCPU(const core::Tensor &src, core::Tensor &dst, const core::Tensor &intrinsics, float invalid_fill)
Definition: ImageImpl.h:218
void ClipTransformCPU(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value, float clip_fill=0.0f)
Definition: ImageImpl.h:109
Definition: PinholeCameraIntrinsic.cpp:35
void CreateNormalMapCPU(const core::Tensor &src, core::Tensor &dst, float invalid_fill)
Definition: ImageImpl.h:265
void CreateNormalMap(const core::Tensor &src, core::Tensor &dst, float invalid_fill)
Definition: Image.cpp:98
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle image_handle timestamp_usec white_balance image_handle k4a_device_configuration_t config device_handle char size_t serial_number_size bool int32_t min_value
Definition: K4aPlugin.cpp:658
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:228