Open3D (C++ API)  0.18.0+0cf605f
Image.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - Open3D: www.open3d.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2023 www.open3d.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include "open3d/core/Tensor.h"
11 
12 namespace open3d {
13 namespace t {
14 namespace geometry {
15 namespace kernel {
16 namespace image {
17 
18 void To(const core::Tensor &src,
19  core::Tensor &dst,
20  double scale,
21  double offset);
22 
23 void ClipTransform(const core::Tensor &src,
24  core::Tensor &dst,
25  float scale,
26  float min_value,
27  float max_value,
28  float clip_fill = 0.0f);
29 
30 void PyrDownDepth(const core::Tensor &src,
31  core::Tensor &dst,
32  float diff_threshold,
33  float invalid_fill);
34 
35 void CreateVertexMap(const core::Tensor &src,
36  core::Tensor &dst,
37  const core::Tensor &intrinsics,
38  float invalid_fill);
39 
40 void CreateNormalMap(const core::Tensor &src,
41  core::Tensor &dst,
42  float invalid_fill);
43 
44 void ColorizeDepth(const core::Tensor &src,
45  core::Tensor &dst,
46  float scale,
47  float min_value,
48  float max_value);
49 
50 void ToCPU(const core::Tensor &src,
51  core::Tensor &dst,
52  double scale,
53  double offset);
54 
55 void ClipTransformCPU(const core::Tensor &src,
56  core::Tensor &dst,
57  float scale,
58  float min_value,
59  float max_value,
60  float clip_fill = 0.0f);
61 
62 void PyrDownDepthCPU(const core::Tensor &src,
63  core::Tensor &dst,
64  float diff_threshold,
65  float invalid_fill);
66 
67 void CreateVertexMapCPU(const core::Tensor &src,
68  core::Tensor &dst,
69  const core::Tensor &intrinsics,
70  float invalid_fill);
71 
72 void CreateNormalMapCPU(const core::Tensor &src,
73  core::Tensor &dst,
74  float invalid_fill);
75 
76 void ColorizeDepthCPU(const core::Tensor &src,
77  core::Tensor &dst,
78  float scale,
79  float min_value,
80  float max_value);
81 
82 #ifdef BUILD_CUDA_MODULE
83 void ToCUDA(const core::Tensor &src,
84  core::Tensor &dst,
85  double scale,
86  double offset);
87 
88 void ClipTransformCUDA(const core::Tensor &src,
89  core::Tensor &dst,
90  float scale,
91  float min_value,
92  float max_value,
93  float clip_fill = 0.0f);
94 
95 void PyrDownDepthCUDA(const core::Tensor &src,
96  core::Tensor &dst,
97  float diff_threshold,
98  float invalid_fill);
99 
100 void CreateVertexMapCUDA(const core::Tensor &src,
101  core::Tensor &dst,
102  const core::Tensor &intrinsics,
103  float invalid_fill);
104 
105 void CreateNormalMapCUDA(const core::Tensor &src,
106  core::Tensor &dst,
107  float invalid_fill);
108 
109 void ColorizeDepthCUDA(const core::Tensor &src,
110  core::Tensor &dst,
111  float scale,
112  float min_value,
113  float max_value);
114 
115 #endif
116 } // namespace image
117 } // namespace kernel
118 } // namespace geometry
119 } // namespace t
120 } // namespace open3d
std::shared_ptr< core::Tensor > image
Definition: FilamentRenderer.cpp:183
int offset
Definition: FilePCD.cpp:45
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:649
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:647
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:90
void CreateNormalMapCPU(const core::Tensor &src, core::Tensor &dst, float invalid_fill)
Definition: ImageImpl.h:246
void ColorizeDepthCPU(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value)
Definition: ImageImpl.h:311
void PyrDownDepth(const core::Tensor &src, core::Tensor &dst, float diff_threshold, float invalid_fill)
Definition: Image.cpp:48
void CreateVertexMap(const core::Tensor &src, core::Tensor &dst, const core::Tensor &intrinsics, float invalid_fill)
Definition: Image.cpp:62
void CreateNormalMap(const core::Tensor &src, core::Tensor &dst, float invalid_fill)
Definition: Image.cpp:79
void CreateVertexMapCPU(const core::Tensor &src, core::Tensor &dst, const core::Tensor &intrinsics, float invalid_fill)
Definition: ImageImpl.h:199
void ClipTransform(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value, float clip_fill)
Definition: Image.cpp:31
void PyrDownDepthCPU(const core::Tensor &src, core::Tensor &dst, float diff_threshold, float invalid_fill)
Definition: ImageImpl.h:126
void ToCPU(const core::Tensor &src, core::Tensor &dst, double scale, double offset)
Definition: ImageImpl.h:33
void To(const core::Tensor &src, core::Tensor &dst, double scale, double offset)
Definition: Image.cpp:17
void ColorizeDepth(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value)
Definition: Image.cpp:92
Definition: PinholeCameraIntrinsic.cpp:16