Rerun C++ SDK
Loading...
Searching...
No Matches
depth_image.hpp
1// DO NOT EDIT! This file was auto-generated by crates/build/re_types_builder/src/codegen/cpp/mod.rs
2// Based on "crates/build/re_type_definitions/rerun/archetypes/depth_image.def.rs".
3
4#pragma once
5
6#include "../collection.hpp"
7#include "../component_batch.hpp"
8#include "../component_column.hpp"
9#include "../components/colormap.hpp"
10#include "../components/depth_meter.hpp"
11#include "../components/draw_order.hpp"
12#include "../components/fill_ratio.hpp"
13#include "../components/image_buffer.hpp"
14#include "../components/image_format.hpp"
15#include "../components/magnification_filter.hpp"
16#include "../components/value_range.hpp"
17#include "../image_utils.hpp"
18#include "../result.hpp"
19
20#include <cstdint>
21#include <optional>
22#include <utility>
23#include <vector>
24
25namespace rerun::archetypes {
26 /// **Archetype**: A depth image, i.e. as captured by a depth camera.
27 ///
28 /// Each pixel corresponds to a depth value in units specified by `components::DepthMeter`.
29 ///
30 /// Since the underlying `rerun::datatypes::ImageBuffer` uses `rerun::Collection` internally,
31 /// data can be passed in without a copy from raw pointers or by reference from `std::vector`/`std::array`/c-arrays.
32 /// If needed, this "borrow-behavior" can be extended by defining your own `rerun::CollectionAdapter`.
33 ///
34 /// ## Example
35 ///
36 /// ### Depth to 3D example
37 /// ![image](https://static.rerun.io/depth_image_3d/924e9d4d6a39d63d4fdece82582855fdaa62d15e/full.png)
38 ///
39 /// ```cpp
40 /// #include <rerun.hpp>
41 ///
42 /// #include <algorithm> // fill_n
43 /// #include <vector>
44 ///
45 /// int main(int argc, char* argv[]) {
46 /// const auto rec = rerun::RecordingStream("rerun_example_depth_image_3d");
47 /// rec.spawn().exit_on_failure();
48 ///
49 /// // Create a synthetic depth image.
50 /// const int HEIGHT = 200;
51 /// const int WIDTH = 300;
52 /// std::vector<uint16_t> data(WIDTH * HEIGHT, 65535);
53 /// for (auto y = 50; y <150; ++y) {
54 /// std::fill_n(
55 /// data.begin() + y * WIDTH + 50,
56 /// 100,
57 /// static_cast<uint16_t>(20000)
58 /// );
59 /// }
60 /// for (auto y = 130; y <180; ++y) {
61 /// std::fill_n(
62 /// data.begin() + y * WIDTH + 100,
63 /// 180,
64 /// static_cast<uint16_t>(45000)
65 /// );
66 /// }
67 ///
68 /// // If we log a pinhole camera model, the depth gets automatically back-projected to 3D
69 /// rec.log(
70 /// "world/camera",
71 /// rerun::Pinhole::from_focal_length_and_resolution(
72 /// 200.0f,
73 /// {static_cast<float>(WIDTH), static_cast<float>(HEIGHT)}
74 /// )
75 /// );
76 ///
77 /// rec.log(
78 /// "world/camera/depth",
79 /// rerun::DepthImage(data.data(), {WIDTH, HEIGHT})
80 /// .with_meter(10000.0)
81 /// .with_colormap(rerun::Colormap::Viridis)
82 /// );
83 /// }
84 /// ```
85 struct DepthImage {
86 /// The raw depth image data.
87 std::optional<ComponentBatch> buffer;
88
89 /// The format of the image.
90 std::optional<ComponentBatch> format;
91
92 /// An optional floating point value that specifies how long a meter is in the native depth units.
93 ///
94 /// For instance: with uint16, perhaps meter=1000 which would mean you have millimeter precision
95 /// and a range of up to ~65 meters (2^16 / 1000).
96 ///
97 /// If omitted, the Viewer defaults to `1.0` for floating-point depth formats and `1000.0` for integer formats (millimeters).
98 ///
99 /// Note that the only effect on 2D views is the physical depth values shown when hovering the image.
100 /// In 3D views on the other hand, this affects where the points of the point cloud are placed.
101 std::optional<ComponentBatch> meter;
102
103 /// Colormap to use for rendering the depth image.
104 ///
105 /// If not set, the depth image will be rendered using the Turbo colormap.
106 std::optional<ComponentBatch> colormap;
107
108 /// The expected range of depth values.
109 ///
110 /// This is typically the expected range of valid values.
111 /// Everything outside of the range is clamped to the range for the purpose of colormpaping.
112 /// Note that point clouds generated from this image will still display all points, regardless of this range.
113 ///
114 /// If not specified, the range will be automatically estimated from the data.
115 /// Note that the Viewer may try to guess a wider range than the minimum/maximum of values
116 /// in the contents of the depth image.
117 /// E.g. if all values are positive, some bigger than 1.0 and all smaller than 255.0,
118 /// the Viewer will guess that the data likely came from an 8bit image, thus assuming a range of 0-255.
119 std::optional<ComponentBatch> depth_range;
120
121 /// Scale the radii of the points in the point cloud generated from this image.
122 ///
123 /// A fill ratio of 1.0 (the default) means that each point is as big as to touch the center of its neighbor
124 /// if it is at the same depth, leaving no gaps.
125 /// A fill ratio of 0.5 means that each point touches the edge of its neighbor if it has the same depth.
126 ///
127 /// TODO(#6744): This applies only to 3D views!
128 std::optional<ComponentBatch> point_fill_ratio;
129
130 /// An optional floating point value that specifies the 2D drawing order, used only if the depth image is shown as a 2D image.
131 ///
132 /// Objects with higher values are drawn on top of those with lower values.
133 /// Defaults to `-20.0`.
134 std::optional<ComponentBatch> draw_order;
135
136 /// Optional filter used when a texel is magnified (displayed larger than a screen pixel) in 2D views.
137 ///
138 /// The filter is applied to the scalar values *before* they are mapped to color via the colormap.
139 ///
140 /// Has no effect in 3D views.
141 std::optional<ComponentBatch> magnification_filter;
142
143 public:
144 /// The name of the archetype as used in `ComponentDescriptor`s.
145 static constexpr const char ArchetypeName[] = "rerun.archetypes.DepthImage";
146
147 /// `ComponentDescriptor` for the `buffer` field.
148 static constexpr auto Descriptor_buffer = ComponentDescriptor(
149 ArchetypeName, "DepthImage:buffer",
151 );
152 /// `ComponentDescriptor` for the `format` field.
153 static constexpr auto Descriptor_format = ComponentDescriptor(
154 ArchetypeName, "DepthImage:format",
156 );
157 /// `ComponentDescriptor` for the `meter` field.
158 static constexpr auto Descriptor_meter = ComponentDescriptor(
159 ArchetypeName, "DepthImage:meter",
161 );
162 /// `ComponentDescriptor` for the `colormap` field.
164 ArchetypeName, "DepthImage:colormap",
166 );
167 /// `ComponentDescriptor` for the `depth_range` field.
169 ArchetypeName, "DepthImage:depth_range",
171 );
172 /// `ComponentDescriptor` for the `point_fill_ratio` field.
174 ArchetypeName, "DepthImage:point_fill_ratio",
176 );
177 /// `ComponentDescriptor` for the `draw_order` field.
179 ArchetypeName, "DepthImage:draw_order",
181 );
182 /// `ComponentDescriptor` for the `magnification_filter` field.
184 ArchetypeName, "DepthImage:magnification_filter",
186 );
187
188 public: // START of extensions from depth_image_ext.cpp:
189 /// Constructs image from pointer + resolution, inferring the datatype from the pointer type.
190 ///
191 /// @param pixels The raw image data.
192 /// ⚠️ Does not take ownership of the data, the caller must ensure the data outlives the image.
193 /// The number of elements is assumed to be `W * H`.
194 /// @param resolution The resolution of the image as {width, height}.
195 template <typename TElement>
196 DepthImage(const TElement* pixels, WidthHeight resolution)
197 : DepthImage{
198 reinterpret_cast<const uint8_t*>(pixels), resolution, get_datatype(pixels)
199 } {}
200
201 /// Constructs image from pixel data + resolution with datatype inferred from the passed collection.
202 ///
203 /// @param pixels The raw image data.
204 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
205 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
206 /// The length of the data should be `W * H`.
207 /// @param resolution The resolution of the image as {width, height}.
208 template <typename TElement>
210 : DepthImage{pixels.to_uint8(), resolution, get_datatype(pixels.data())} {}
211
212 /// Constructs image from pixel data + resolution with explicit datatype. Borrows data from a pointer (i.e. data must outlive the image!).
213 ///
214 /// @param bytes The raw image data.
215 /// ⚠️ Does not take ownership of the data, the caller must ensure the data outlives the image.
216 /// The byte size of the data is assumed to be `W * H * datatype.size`
217 /// @param resolution The resolution of the image as {width, height}.
218 /// @param datatype How the data should be interpreted.
219 DepthImage(const void* bytes, WidthHeight resolution, datatypes::ChannelDatatype datatype)
220 : DepthImage{
221 Collection<uint8_t>::borrow(bytes, num_bytes(resolution, datatype)),
222 resolution,
223 datatype
224 } {}
225
226 /// Constructs image from pixel data + resolution + datatype.
227 ///
228 /// @param bytes The raw image data as bytes.
229 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
230 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
231 /// The length of the data should be `W * H`.
232 /// @param resolution The resolution of the image as {width, height}.
233 /// @param datatype How the data should be interpreted.
236 ) {
237 auto image_format = datatypes::ImageFormat{resolution, datatype};
238 if (bytes.size() != image_format.num_bytes()) {
239 Error(
240 ErrorCode::InvalidTensorDimension,
241 "DepthImage buffer has the wrong size. Got " + std::to_string(bytes.size()) +
242 " bytes, expected " + std::to_string(image_format.num_bytes())
243 )
244 .handle();
245 }
246 *this = std::move(*this).with_buffer(bytes).with_format(image_format);
247 }
248
249 // END of extensions from depth_image_ext.cpp, start of generated code:
250
251 public:
252 DepthImage() = default;
253 DepthImage(DepthImage&& other) = default;
254 DepthImage(const DepthImage& other) = default;
255 DepthImage& operator=(const DepthImage& other) = default;
256 DepthImage& operator=(DepthImage&& other) = default;
257
258 /// Update only some specific fields of a `DepthImage`.
260 return DepthImage();
261 }
262
263 /// Clear all the fields of a `DepthImage`.
265
266 /// The raw depth image data.
268 buffer = ComponentBatch::from_loggable(_buffer, Descriptor_buffer).value_or_throw();
269 return std::move(*this);
270 }
271
272 /// This method makes it possible to pack multiple `buffer` in a single component batch.
273 ///
274 /// This only makes sense when used in conjunction with `columns`. `with_buffer` should
275 /// be used when logging a single row's worth of data.
277 buffer = ComponentBatch::from_loggable(_buffer, Descriptor_buffer).value_or_throw();
278 return std::move(*this);
279 }
280
281 /// The format of the image.
283 format = ComponentBatch::from_loggable(_format, Descriptor_format).value_or_throw();
284 return std::move(*this);
285 }
286
287 /// This method makes it possible to pack multiple `format` in a single component batch.
288 ///
289 /// This only makes sense when used in conjunction with `columns`. `with_format` should
290 /// be used when logging a single row's worth of data.
292 format = ComponentBatch::from_loggable(_format, Descriptor_format).value_or_throw();
293 return std::move(*this);
294 }
295
296 /// An optional floating point value that specifies how long a meter is in the native depth units.
297 ///
298 /// For instance: with uint16, perhaps meter=1000 which would mean you have millimeter precision
299 /// and a range of up to ~65 meters (2^16 / 1000).
300 ///
301 /// If omitted, the Viewer defaults to `1.0` for floating-point depth formats and `1000.0` for integer formats (millimeters).
302 ///
303 /// Note that the only effect on 2D views is the physical depth values shown when hovering the image.
304 /// In 3D views on the other hand, this affects where the points of the point cloud are placed.
306 meter = ComponentBatch::from_loggable(_meter, Descriptor_meter).value_or_throw();
307 return std::move(*this);
308 }
309
310 /// This method makes it possible to pack multiple `meter` in a single component batch.
311 ///
312 /// This only makes sense when used in conjunction with `columns`. `with_meter` should
313 /// be used when logging a single row's worth of data.
315 meter = ComponentBatch::from_loggable(_meter, Descriptor_meter).value_or_throw();
316 return std::move(*this);
317 }
318
319 /// Colormap to use for rendering the depth image.
320 ///
321 /// If not set, the depth image will be rendered using the Turbo colormap.
323 colormap =
324 ComponentBatch::from_loggable(_colormap, Descriptor_colormap).value_or_throw();
325 return std::move(*this);
326 }
327
328 /// This method makes it possible to pack multiple `colormap` in a single component batch.
329 ///
330 /// This only makes sense when used in conjunction with `columns`. `with_colormap` should
331 /// be used when logging a single row's worth of data.
333 colormap =
334 ComponentBatch::from_loggable(_colormap, Descriptor_colormap).value_or_throw();
335 return std::move(*this);
336 }
337
338 /// The expected range of depth values.
339 ///
340 /// This is typically the expected range of valid values.
341 /// Everything outside of the range is clamped to the range for the purpose of colormpaping.
342 /// Note that point clouds generated from this image will still display all points, regardless of this range.
343 ///
344 /// If not specified, the range will be automatically estimated from the data.
345 /// Note that the Viewer may try to guess a wider range than the minimum/maximum of values
346 /// in the contents of the depth image.
347 /// E.g. if all values are positive, some bigger than 1.0 and all smaller than 255.0,
348 /// the Viewer will guess that the data likely came from an 8bit image, thus assuming a range of 0-255.
351 .value_or_throw();
352 return std::move(*this);
353 }
354
355 /// This method makes it possible to pack multiple `depth_range` in a single component batch.
356 ///
357 /// This only makes sense when used in conjunction with `columns`. `with_depth_range` should
358 /// be used when logging a single row's worth of data.
361 ) && {
363 .value_or_throw();
364 return std::move(*this);
365 }
366
367 /// Scale the radii of the points in the point cloud generated from this image.
368 ///
369 /// A fill ratio of 1.0 (the default) means that each point is as big as to touch the center of its neighbor
370 /// if it is at the same depth, leaving no gaps.
371 /// A fill ratio of 0.5 means that each point touches the edge of its neighbor if it has the same depth.
372 ///
373 /// TODO(#6744): This applies only to 3D views!
377 .value_or_throw();
378 return std::move(*this);
379 }
380
381 /// This method makes it possible to pack multiple `point_fill_ratio` in a single component batch.
382 ///
383 /// This only makes sense when used in conjunction with `columns`. `with_point_fill_ratio` should
384 /// be used when logging a single row's worth of data.
386 const Collection<rerun::components::FillRatio>& _point_fill_ratio
387 ) && {
390 .value_or_throw();
391 return std::move(*this);
392 }
393
394 /// An optional floating point value that specifies the 2D drawing order, used only if the depth image is shown as a 2D image.
395 ///
396 /// Objects with higher values are drawn on top of those with lower values.
397 /// Defaults to `-20.0`.
399 draw_order =
400 ComponentBatch::from_loggable(_draw_order, Descriptor_draw_order).value_or_throw();
401 return std::move(*this);
402 }
403
404 /// This method makes it possible to pack multiple `draw_order` in a single component batch.
405 ///
406 /// This only makes sense when used in conjunction with `columns`. `with_draw_order` should
407 /// be used when logging a single row's worth of data.
409 ) && {
410 draw_order =
411 ComponentBatch::from_loggable(_draw_order, Descriptor_draw_order).value_or_throw();
412 return std::move(*this);
413 }
414
415 /// Optional filter used when a texel is magnified (displayed larger than a screen pixel) in 2D views.
416 ///
417 /// The filter is applied to the scalar values *before* they are mapped to color via the colormap.
418 ///
419 /// Has no effect in 3D views.
421 const rerun::components::MagnificationFilter& _magnification_filter
422 ) && {
424 _magnification_filter,
426 )
427 .value_or_throw();
428 return std::move(*this);
429 }
430
431 /// This method makes it possible to pack multiple `magnification_filter` in a single component batch.
432 ///
433 /// This only makes sense when used in conjunction with `columns`. `with_magnification_filter` should
434 /// be used when logging a single row's worth of data.
436 const Collection<rerun::components::MagnificationFilter>& _magnification_filter
437 ) && {
439 _magnification_filter,
441 )
442 .value_or_throw();
443 return std::move(*this);
444 }
445
446 /// Partitions the component data into multiple sub-batches.
447 ///
448 /// Specifically, this transforms the existing `ComponentBatch` data into `ComponentColumn`s
449 /// instead, via `ComponentBatch::partitioned`.
450 ///
451 /// This makes it possible to use `RecordingStream::send_columns` to send columnar data directly into Rerun.
452 ///
453 /// The specified `lengths` must sum to the total length of the component batch.
455
456 /// Partitions the component data into unit-length sub-batches.
457 ///
458 /// This is semantically similar to calling `columns` with `std::vector<uint32_t>(n, 1)`,
459 /// where `n` is automatically guessed.
461 };
462
463} // namespace rerun::archetypes
464
465namespace rerun {
466 /// \private
467 template <typename T>
468 struct AsComponents;
469
470 /// \private
471 template <>
472 struct AsComponents<archetypes::DepthImage> {
473 /// Serialize all set component batches.
474 static Result<Collection<ComponentBatch>> as_batches(const archetypes::DepthImage& archetype
475 );
476 };
477} // namespace rerun
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:49
size_t size() const
Returns the number of instances in this collection.
Definition collection.hpp:295
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
void handle() const
Handle this error based on the set log handler.
A class for representing either a usable value, or an error.
Definition result.hpp:14
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:87
Colormap
Component: Colormap for mapping scalar values within a given range to a color.
Definition colormap.hpp:28
MagnificationFilter
Component: Filter used when a single texel/pixel of an image is displayed larger than a single screen...
Definition magnification_filter.hpp:27
ChannelDatatype
Datatype: The innermost datatype of an image.
Definition channel_datatype.hpp:26
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Collection< TElement > borrow(const TElement *data, size_t num_instances=1)
Borrows binary data into a Collection from a pointer.
Definition collection.hpp:453
static Result< ComponentBatch > from_loggable(const rerun::Collection< T > &components, const ComponentDescriptor &descriptor)
Creates a new component batch from a collection of component instances.
Definition component_batch.hpp:46
A ComponentDescriptor fully describes the semantics of a column of data.
Definition component_descriptor.hpp:16
The Loggable trait is used by all built-in implementation of rerun::AsComponents to serialize a colle...
Definition loggable.hpp:11
The width and height of an image.
Definition image_utils.hpp:13
Archetype: A depth image, i.e.
Definition depth_image.hpp:85
DepthImage with_colormap(const rerun::components::Colormap &_colormap) &&
Colormap to use for rendering the depth image.
Definition depth_image.hpp:322
DepthImage with_meter(const rerun::components::DepthMeter &_meter) &&
An optional floating point value that specifies how long a meter is in the native depth units.
Definition depth_image.hpp:305
std::optional< ComponentBatch > format
The format of the image.
Definition depth_image.hpp:90
static constexpr auto Descriptor_depth_range
ComponentDescriptor for the depth_range field.
Definition depth_image.hpp:168
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition depth_image.hpp:145
DepthImage(Collection< uint8_t > bytes, WidthHeight resolution, datatypes::ChannelDatatype datatype)
Constructs image from pixel data + resolution + datatype.
Definition depth_image.hpp:234
DepthImage with_many_magnification_filter(const Collection< rerun::components::MagnificationFilter > &_magnification_filter) &&
This method makes it possible to pack multiple magnification_filter in a single component batch.
Definition depth_image.hpp:435
DepthImage with_magnification_filter(const rerun::components::MagnificationFilter &_magnification_filter) &&
Optional filter used when a texel is magnified (displayed larger than a screen pixel) in 2D views.
Definition depth_image.hpp:420
DepthImage with_point_fill_ratio(const rerun::components::FillRatio &_point_fill_ratio) &&
Scale the radii of the points in the point cloud generated from this image.
Definition depth_image.hpp:374
static constexpr auto Descriptor_point_fill_ratio
ComponentDescriptor for the point_fill_ratio field.
Definition depth_image.hpp:173
std::optional< ComponentBatch > magnification_filter
Optional filter used when a texel is magnified (displayed larger than a screen pixel) in 2D views.
Definition depth_image.hpp:141
DepthImage with_many_draw_order(const Collection< rerun::components::DrawOrder > &_draw_order) &&
This method makes it possible to pack multiple draw_order in a single component batch.
Definition depth_image.hpp:408
static DepthImage update_fields()
Update only some specific fields of a DepthImage.
Definition depth_image.hpp:259
std::optional< ComponentBatch > colormap
Colormap to use for rendering the depth image.
Definition depth_image.hpp:106
std::optional< ComponentBatch > depth_range
The expected range of depth values.
Definition depth_image.hpp:119
static constexpr auto Descriptor_format
ComponentDescriptor for the format field.
Definition depth_image.hpp:153
DepthImage with_depth_range(const rerun::components::ValueRange &_depth_range) &&
The expected range of depth values.
Definition depth_image.hpp:349
Collection< ComponentColumn > columns(const Collection< uint32_t > &lengths_)
Partitions the component data into multiple sub-batches.
static constexpr auto Descriptor_colormap
ComponentDescriptor for the colormap field.
Definition depth_image.hpp:163
std::optional< ComponentBatch > meter
An optional floating point value that specifies how long a meter is in the native depth units.
Definition depth_image.hpp:101
DepthImage(Collection< TElement > pixels, WidthHeight resolution)
Constructs image from pixel data + resolution with datatype inferred from the passed collection.
Definition depth_image.hpp:209
std::optional< ComponentBatch > draw_order
An optional floating point value that specifies the 2D drawing order, used only if the depth image is...
Definition depth_image.hpp:134
static constexpr auto Descriptor_draw_order
ComponentDescriptor for the draw_order field.
Definition depth_image.hpp:178
DepthImage with_many_point_fill_ratio(const Collection< rerun::components::FillRatio > &_point_fill_ratio) &&
This method makes it possible to pack multiple point_fill_ratio in a single component batch.
Definition depth_image.hpp:385
static constexpr auto Descriptor_buffer
ComponentDescriptor for the buffer field.
Definition depth_image.hpp:148
DepthImage(const void *bytes, WidthHeight resolution, datatypes::ChannelDatatype datatype)
Constructs image from pixel data + resolution with explicit datatype.
Definition depth_image.hpp:219
DepthImage with_many_colormap(const Collection< rerun::components::Colormap > &_colormap) &&
This method makes it possible to pack multiple colormap in a single component batch.
Definition depth_image.hpp:332
DepthImage(const TElement *pixels, WidthHeight resolution)
Constructs image from pointer + resolution, inferring the datatype from the pointer type.
Definition depth_image.hpp:196
DepthImage with_many_meter(const Collection< rerun::components::DepthMeter > &_meter) &&
This method makes it possible to pack multiple meter in a single component batch.
Definition depth_image.hpp:314
std::optional< ComponentBatch > point_fill_ratio
Scale the radii of the points in the point cloud generated from this image.
Definition depth_image.hpp:128
Collection< ComponentColumn > columns()
Partitions the component data into unit-length sub-batches.
DepthImage with_format(const rerun::components::ImageFormat &_format) &&
The format of the image.
Definition depth_image.hpp:282
DepthImage with_many_depth_range(const Collection< rerun::components::ValueRange > &_depth_range) &&
This method makes it possible to pack multiple depth_range in a single component batch.
Definition depth_image.hpp:359
DepthImage with_buffer(const rerun::components::ImageBuffer &_buffer) &&
The raw depth image data.
Definition depth_image.hpp:267
DepthImage with_many_format(const Collection< rerun::components::ImageFormat > &_format) &&
This method makes it possible to pack multiple format in a single component batch.
Definition depth_image.hpp:291
DepthImage with_draw_order(const rerun::components::DrawOrder &_draw_order) &&
An optional floating point value that specifies the 2D drawing order, used only if the depth image is...
Definition depth_image.hpp:398
static constexpr auto Descriptor_magnification_filter
ComponentDescriptor for the magnification_filter field.
Definition depth_image.hpp:183
static DepthImage clear_fields()
Clear all the fields of a DepthImage.
DepthImage with_many_buffer(const Collection< rerun::components::ImageBuffer > &_buffer) &&
This method makes it possible to pack multiple buffer in a single component batch.
Definition depth_image.hpp:276
static constexpr auto Descriptor_meter
ComponentDescriptor for the meter field.
Definition depth_image.hpp:158
std::optional< ComponentBatch > buffer
The raw depth image data.
Definition depth_image.hpp:87
Component: The world->depth map scaling factor.
Definition depth_meter.hpp:24
Component: Draw order of 2D elements.
Definition draw_order.hpp:19
Component: How much a primitive fills out the available space.
Definition fill_ratio.hpp:19
Component: A buffer that is known to store image data.
Definition image_buffer.hpp:18
Component: The metadata describing the contents of a components::ImageBuffer.
Definition image_format.hpp:14
Component: Range of expected or valid values, specifying a lower and upper bound.
Definition value_range.hpp:18
Datatype: The metadata describing the contents of a components::ImageBuffer.
Definition image_format.hpp:25