Open3D (C++ API)  0.13.0
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 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 ClipTransform(const core::Tensor &src,
38  core::Tensor &dst,
39  float scale,
40  float min_value,
41  float max_value,
42  float clip_fill = 0.0f);
43 
44 void PyrDownDepth(const core::Tensor &src,
45  core::Tensor &dst,
46  float diff_threshold,
47  float invalid_fill);
48 
49 void CreateVertexMap(const core::Tensor &src,
50  core::Tensor &dst,
51  const core::Tensor &intrinsics,
52  float invalid_fill);
53 
54 void CreateNormalMap(const core::Tensor &src,
55  core::Tensor &dst,
56  float invalid_fill);
57 
58 void ColorizeDepth(const core::Tensor &src,
59  core::Tensor &dst,
60  float scale,
61  float min_value,
62  float max_value);
63 
64 void ClipTransformCPU(const core::Tensor &src,
65  core::Tensor &dst,
66  float scale,
67  float min_value,
68  float max_value,
69  float clip_fill = 0.0f);
70 
71 void PyrDownDepthCPU(const core::Tensor &src,
72  core::Tensor &dst,
73  float diff_threshold,
74  float invalid_fill);
75 
76 void CreateVertexMapCPU(const core::Tensor &src,
77  core::Tensor &dst,
78  const core::Tensor &intrinsics,
79  float invalid_fill);
80 
81 void CreateNormalMapCPU(const core::Tensor &src,
82  core::Tensor &dst,
83  float invalid_fill);
84 
85 void ColorizeDepthCPU(const core::Tensor &src,
86  core::Tensor &dst,
87  float scale,
88  float min_value,
89  float max_value);
90 
91 #ifdef BUILD_CUDA_MODULE
92 void ClipTransformCUDA(const core::Tensor &src,
93  core::Tensor &dst,
94  float scale,
95  float min_value,
96  float max_value,
97  float clip_fill = 0.0f);
98 
99 void PyrDownDepthCUDA(const core::Tensor &src,
100  core::Tensor &dst,
101  float diff_threshold,
102  float invalid_fill);
103 
104 void CreateVertexMapCUDA(const core::Tensor &src,
105  core::Tensor &dst,
106  const core::Tensor &intrinsics,
107  float invalid_fill);
108 
109 void CreateNormalMapCUDA(const core::Tensor &src,
110  core::Tensor &dst,
111  float invalid_fill);
112 
113 void ColorizeDepthCUDA(const core::Tensor &src,
114  core::Tensor &dst,
115  float scale,
116  float min_value,
117  float max_value);
118 
119 #endif
120 } // namespace image
121 } // namespace kernel
122 } // namespace geometry
123 } // namespace t
124 } // namespace open3d
void ColorizeDepth(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value)
Definition: Image.cpp:98
void ColorizeDepthCPU(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value)
Definition: ImageImpl.h:280
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:648
void PyrDownDepth(const core::Tensor &src, core::Tensor &dst, float diff_threshold, float invalid_fill)
Definition: Image.cpp:53
void CreateVertexMap(const core::Tensor &src, core::Tensor &dst, const core::Tensor &intrinsics, float invalid_fill)
Definition: Image.cpp:67
void PyrDownDepthCPU(const core::Tensor &src, core::Tensor &dst, float diff_threshold, float invalid_fill)
Definition: ImageImpl.h:91
void ClipTransform(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value, float clip_fill)
Definition: Image.cpp:36
void CreateVertexMapCPU(const core::Tensor &src, core::Tensor &dst, const core::Tensor &intrinsics, float invalid_fill)
Definition: ImageImpl.h:164
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:49
Definition: PinholeCameraIntrinsic.cpp:35
void CreateNormalMapCPU(const core::Tensor &src, core::Tensor &dst, float invalid_fill)
Definition: ImageImpl.h:212
void CreateNormalMap(const core::Tensor &src, core::Tensor &dst, float invalid_fill)
Definition: Image.cpp:85
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:648
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:228