Open3D (C++ API)  0.19.0
Loading...
Searching...
No Matches
Image.h
Go to the documentation of this file.
1// ----------------------------------------------------------------------------
2// - Open3D: www.open3d.org -
3// ----------------------------------------------------------------------------
4// Copyright (c) 2018-2024 www.open3d.org
5// SPDX-License-Identifier: MIT
6// ----------------------------------------------------------------------------
7
8#pragma once
9
10#include "open3d/core/Tensor.h"
11
12namespace open3d {
13namespace t {
14namespace geometry {
15namespace kernel {
16namespace image {
17
18void To(const core::Tensor &src,
19 core::Tensor &dst,
20 double scale,
21 double offset);
22
23void 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
30void PyrDownDepth(const core::Tensor &src,
31 core::Tensor &dst,
32 float diff_threshold,
33 float invalid_fill);
34
35void CreateVertexMap(const core::Tensor &src,
36 core::Tensor &dst,
37 const core::Tensor &intrinsics,
38 float invalid_fill);
39
40void CreateNormalMap(const core::Tensor &src,
41 core::Tensor &dst,
42 float invalid_fill);
43
44void ColorizeDepth(const core::Tensor &src,
45 core::Tensor &dst,
46 float scale,
47 float min_value,
48 float max_value);
49
50void ToCPU(const core::Tensor &src,
51 core::Tensor &dst,
52 double scale,
53 double offset);
54
55void 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
62void PyrDownDepthCPU(const core::Tensor &src,
63 core::Tensor &dst,
64 float diff_threshold,
65 float invalid_fill);
66
67void CreateVertexMapCPU(const core::Tensor &src,
68 core::Tensor &dst,
69 const core::Tensor &intrinsics,
70 float invalid_fill);
71
72void CreateNormalMapCPU(const core::Tensor &src,
73 core::Tensor &dst,
74 float invalid_fill);
75
76void 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
83void ToCUDA(const core::Tensor &src,
84 core::Tensor &dst,
85 double scale,
86 double offset);
87
88void 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
95void PyrDownDepthCUDA(const core::Tensor &src,
96 core::Tensor &dst,
97 float diff_threshold,
98 float invalid_fill);
99
100void CreateVertexMapCUDA(const core::Tensor &src,
101 core::Tensor &dst,
102 const core::Tensor &intrinsics,
103 float invalid_fill);
104
105void CreateNormalMapCUDA(const core::Tensor &src,
106 core::Tensor &dst,
107 float invalid_fill);
108
109void ColorizeDepthCUDA(const core::Tensor &src,
110 core::Tensor &dst,
111 float scale,
112 float min_value,
113 float max_value);
114#endif
115
116#ifdef BUILD_SYCL_MODULE
117void ToSYCL(const core::Tensor &src,
118 core::Tensor &dst,
119 double scale,
120 double offset);
121
122void ClipTransformSYCL(const core::Tensor &src,
123 core::Tensor &dst,
124 float scale,
125 float min_value,
126 float max_value,
127 float clip_fill = 0.0f);
128
129void PyrDownDepthSYCL(const core::Tensor &src,
130 core::Tensor &dst,
131 float diff_threshold,
132 float invalid_fill);
133
134void CreateVertexMapSYCL(const core::Tensor &src,
135 core::Tensor &dst,
136 const core::Tensor &intrinsics,
137 float invalid_fill);
138
139void CreateNormalMapSYCL(const core::Tensor &src,
140 core::Tensor &dst,
141 float invalid_fill);
142
143void ColorizeDepthSYCL(const core::Tensor &src,
144 core::Tensor &dst,
145 float scale,
146 float min_value,
147 float max_value);
148#endif
149} // namespace image
150} // namespace kernel
151} // namespace geometry
152} // namespace t
153} // namespace open3d
std::shared_ptr< core::Tensor > image
Definition FilamentRenderer.cpp:328
double t
Definition SurfaceReconstructionPoisson.cpp:172
int offset
Definition FilePCD.cpp:46
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:94
void CreateNormalMapCPU(const core::Tensor &src, core::Tensor &dst, float invalid_fill)
Definition ImageImpl.h:256
void ColorizeDepthCPU(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value)
Definition ImageImpl.h:323
void PyrDownDepth(const core::Tensor &src, core::Tensor &dst, float diff_threshold, float invalid_fill)
Definition Image.cpp:60
void CreateVertexMap(const core::Tensor &src, core::Tensor &dst, const core::Tensor &intrinsics, float invalid_fill)
Definition Image.cpp:80
void CreateNormalMap(const core::Tensor &src, core::Tensor &dst, float invalid_fill)
Definition Image.cpp:103
void CreateVertexMapCPU(const core::Tensor &src, core::Tensor &dst, const core::Tensor &intrinsics, float invalid_fill)
Definition ImageImpl.h:207
void ClipTransform(const core::Tensor &src, core::Tensor &dst, float scale, float min_value, float max_value, float clip_fill)
Definition Image.cpp:37
void PyrDownDepthCPU(const core::Tensor &src, core::Tensor &dst, float diff_threshold, float invalid_fill)
Definition ImageImpl.h:132
void ToCPU(const core::Tensor &src, core::Tensor &dst, double scale, double offset)
Definition ImageImpl.h:35
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:122
Definition PinholeCameraIntrinsic.cpp:16