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/store/re_sdk_types/definitions/rerun/archetypes/depth_image.fbs".
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 /// Constructs image from pixel data + resolution with datatype inferred from the passed collection.
201 ///
202 /// @param pixels The raw image data.
203 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
204 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
205 /// The length of the data should be `W * H`.
206 /// @param resolution The resolution of the image as {width, height}.
207 template <typename TElement>
209 : DepthImage{pixels.to_uint8(), resolution, get_datatype(pixels.data())} {}
210
211 /// Constructs image from pixel data + resolution with explicit datatype. Borrows data from a pointer (i.e. data must outlive the image!).
212 ///
213 /// @param bytes The raw image data.
214 /// ⚠️ Does not take ownership of the data, the caller must ensure the data outlives the image.
215 /// The byte size of the data is assumed to be `W * H * datatype.size`
216 /// @param resolution The resolution of the image as {width, height}.
217 /// @param datatype How the data should be interpreted.
218 DepthImage(const void* bytes, WidthHeight resolution, datatypes::ChannelDatatype datatype)
219 : DepthImage{
220 Collection<uint8_t>::borrow(bytes, num_bytes(resolution, datatype)),
221 resolution,
222 datatype} {}
223
224 /// Constructs image from pixel data + resolution + datatype.
225 ///
226 /// @param bytes The raw image data as bytes.
227 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
228 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
229 /// The length of the data should be `W * H`.
230 /// @param resolution The resolution of the image as {width, height}.
231 /// @param datatype How the data should be interpreted.
234 ) {
235 auto image_format = datatypes::ImageFormat{resolution, datatype};
236 if (bytes.size() != image_format.num_bytes()) {
237 Error(
238 ErrorCode::InvalidTensorDimension,
239 "DepthImage buffer has the wrong size. Got " + std::to_string(bytes.size()) +
240 " bytes, expected " + std::to_string(image_format.num_bytes())
241 )
242 .handle();
243 }
244 *this = std::move(*this).with_buffer(bytes).with_format(image_format);
245 }
246
247 // END of extensions from depth_image_ext.cpp, start of generated code:
248
249 public:
250 DepthImage() = default;
251 DepthImage(DepthImage&& other) = default;
252 DepthImage(const DepthImage& other) = default;
253 DepthImage& operator=(const DepthImage& other) = default;
254 DepthImage& operator=(DepthImage&& other) = default;
255
256 /// Update only some specific fields of a `DepthImage`.
258 return DepthImage();
259 }
260
261 /// Clear all the fields of a `DepthImage`.
263
264 /// The raw depth image data.
266 buffer = ComponentBatch::from_loggable(_buffer, Descriptor_buffer).value_or_throw();
267 return std::move(*this);
268 }
269
270 /// This method makes it possible to pack multiple `buffer` in a single component batch.
271 ///
272 /// This only makes sense when used in conjunction with `columns`. `with_buffer` should
273 /// be used when logging a single row's worth of data.
275 buffer = ComponentBatch::from_loggable(_buffer, Descriptor_buffer).value_or_throw();
276 return std::move(*this);
277 }
278
279 /// The format of the image.
281 format = ComponentBatch::from_loggable(_format, Descriptor_format).value_or_throw();
282 return std::move(*this);
283 }
284
285 /// This method makes it possible to pack multiple `format` in a single component batch.
286 ///
287 /// This only makes sense when used in conjunction with `columns`. `with_format` should
288 /// be used when logging a single row's worth of data.
290 format = ComponentBatch::from_loggable(_format, Descriptor_format).value_or_throw();
291 return std::move(*this);
292 }
293
294 /// An optional floating point value that specifies how long a meter is in the native depth units.
295 ///
296 /// For instance: with uint16, perhaps meter=1000 which would mean you have millimeter precision
297 /// and a range of up to ~65 meters (2^16 / 1000).
298 ///
299 /// If omitted, the Viewer defaults to `1.0` for floating-point depth formats and `1000.0` for integer formats (millimeters).
300 ///
301 /// Note that the only effect on 2D views is the physical depth values shown when hovering the image.
302 /// In 3D views on the other hand, this affects where the points of the point cloud are placed.
304 meter = ComponentBatch::from_loggable(_meter, Descriptor_meter).value_or_throw();
305 return std::move(*this);
306 }
307
308 /// This method makes it possible to pack multiple `meter` in a single component batch.
309 ///
310 /// This only makes sense when used in conjunction with `columns`. `with_meter` should
311 /// be used when logging a single row's worth of data.
313 meter = ComponentBatch::from_loggable(_meter, Descriptor_meter).value_or_throw();
314 return std::move(*this);
315 }
316
317 /// Colormap to use for rendering the depth image.
318 ///
319 /// If not set, the depth image will be rendered using the Turbo colormap.
321 colormap =
322 ComponentBatch::from_loggable(_colormap, Descriptor_colormap).value_or_throw();
323 return std::move(*this);
324 }
325
326 /// This method makes it possible to pack multiple `colormap` in a single component batch.
327 ///
328 /// This only makes sense when used in conjunction with `columns`. `with_colormap` should
329 /// be used when logging a single row's worth of data.
331 colormap =
332 ComponentBatch::from_loggable(_colormap, Descriptor_colormap).value_or_throw();
333 return std::move(*this);
334 }
335
336 /// The expected range of depth values.
337 ///
338 /// This is typically the expected range of valid values.
339 /// Everything outside of the range is clamped to the range for the purpose of colormpaping.
340 /// Note that point clouds generated from this image will still display all points, regardless of this range.
341 ///
342 /// If not specified, the range will be automatically estimated from the data.
343 /// Note that the Viewer may try to guess a wider range than the minimum/maximum of values
344 /// in the contents of the depth image.
345 /// E.g. if all values are positive, some bigger than 1.0 and all smaller than 255.0,
346 /// the Viewer will guess that the data likely came from an 8bit image, thus assuming a range of 0-255.
349 .value_or_throw();
350 return std::move(*this);
351 }
352
353 /// This method makes it possible to pack multiple `depth_range` in a single component batch.
354 ///
355 /// This only makes sense when used in conjunction with `columns`. `with_depth_range` should
356 /// be used when logging a single row's worth of data.
359 ) && {
361 .value_or_throw();
362 return std::move(*this);
363 }
364
365 /// Scale the radii of the points in the point cloud generated from this image.
366 ///
367 /// A fill ratio of 1.0 (the default) means that each point is as big as to touch the center of its neighbor
368 /// if it is at the same depth, leaving no gaps.
369 /// A fill ratio of 0.5 means that each point touches the edge of its neighbor if it has the same depth.
370 ///
371 /// TODO(#6744): This applies only to 3D views!
375 .value_or_throw();
376 return std::move(*this);
377 }
378
379 /// This method makes it possible to pack multiple `point_fill_ratio` in a single component batch.
380 ///
381 /// This only makes sense when used in conjunction with `columns`. `with_point_fill_ratio` should
382 /// be used when logging a single row's worth of data.
384 const Collection<rerun::components::FillRatio>& _point_fill_ratio
385 ) && {
388 .value_or_throw();
389 return std::move(*this);
390 }
391
392 /// An optional floating point value that specifies the 2D drawing order, used only if the depth image is shown as a 2D image.
393 ///
394 /// Objects with higher values are drawn on top of those with lower values.
395 /// Defaults to `-20.0`.
397 draw_order =
398 ComponentBatch::from_loggable(_draw_order, Descriptor_draw_order).value_or_throw();
399 return std::move(*this);
400 }
401
402 /// This method makes it possible to pack multiple `draw_order` in a single component batch.
403 ///
404 /// This only makes sense when used in conjunction with `columns`. `with_draw_order` should
405 /// be used when logging a single row's worth of data.
407 ) && {
408 draw_order =
409 ComponentBatch::from_loggable(_draw_order, Descriptor_draw_order).value_or_throw();
410 return std::move(*this);
411 }
412
413 /// Optional filter used when a texel is magnified (displayed larger than a screen pixel) in 2D views.
414 ///
415 /// The filter is applied to the scalar values *before* they are mapped to color via the colormap.
416 ///
417 /// Has no effect in 3D views.
419 const rerun::components::MagnificationFilter& _magnification_filter
420 ) && {
422 _magnification_filter,
424 )
425 .value_or_throw();
426 return std::move(*this);
427 }
428
429 /// This method makes it possible to pack multiple `magnification_filter` in a single component batch.
430 ///
431 /// This only makes sense when used in conjunction with `columns`. `with_magnification_filter` should
432 /// be used when logging a single row's worth of data.
434 const Collection<rerun::components::MagnificationFilter>& _magnification_filter
435 ) && {
437 _magnification_filter,
439 )
440 .value_or_throw();
441 return std::move(*this);
442 }
443
444 /// Partitions the component data into multiple sub-batches.
445 ///
446 /// Specifically, this transforms the existing `ComponentBatch` data into `ComponentColumn`s
447 /// instead, via `ComponentBatch::partitioned`.
448 ///
449 /// This makes it possible to use `RecordingStream::send_columns` to send columnar data directly into Rerun.
450 ///
451 /// The specified `lengths` must sum to the total length of the component batch.
453
454 /// Partitions the component data into unit-length sub-batches.
455 ///
456 /// This is semantically similar to calling `columns` with `std::vector<uint32_t>(n, 1)`,
457 /// where `n` is automatically guessed.
459 };
460
461} // namespace rerun::archetypes
462
463namespace rerun {
464 /// \private
465 template <typename T>
466 struct AsComponents;
467
468 /// \private
469 template <>
470 struct AsComponents<archetypes::DepthImage> {
471 /// Serialize all set component batches.
472 static Result<Collection<ComponentBatch>> as_batches(const archetypes::DepthImage& archetype
473 );
474 };
475} // 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:291
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:462
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:320
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:303
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:232
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:433
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:418
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:372
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:406
static DepthImage update_fields()
Update only some specific fields of a DepthImage.
Definition depth_image.hpp:257
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:347
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:208
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:383
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:218
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:330
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:312
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:280
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:357
DepthImage with_buffer(const rerun::components::ImageBuffer &_buffer) &&
The raw depth image data.
Definition depth_image.hpp:265
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:289
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:396
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:274
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:24