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(data.begin() + y * WIDTH + 50, 100, static_cast<uint16_t>(20000));
55 /// }
56 /// for (auto y = 130; y <180; ++y) {
57 /// std::fill_n(data.begin() + y * WIDTH + 100, 180, static_cast<uint16_t>(45000));
58 /// }
59 ///
60 /// // If we log a pinhole camera model, the depth gets automatically back-projected to 3D
61 /// rec.log(
62 /// "world/camera",
63 /// rerun::Pinhole::from_focal_length_and_resolution(
64 /// 200.0f,
65 /// {static_cast<float>(WIDTH), static_cast<float>(HEIGHT)}
66 /// )
67 /// );
68 ///
69 /// rec.log(
70 /// "world/camera/depth",
71 /// rerun::DepthImage(data.data(), {WIDTH, HEIGHT})
72 /// .with_meter(10000.0)
73 /// .with_colormap(rerun::components::Colormap::Viridis)
74 /// );
75 /// }
76 /// ```
77 struct DepthImage {
78 /// The raw depth image data.
79 std::optional<ComponentBatch> buffer;
80
81 /// The format of the image.
82 std::optional<ComponentBatch> format;
83
84 /// An optional floating point value that specifies how long a meter is in the native depth units.
85 ///
86 /// For instance: with uint16, perhaps meter=1000 which would mean you have millimeter precision
87 /// and a range of up to ~65 meters (2^16 / 1000).
88 ///
89 /// If omitted, the Viewer defaults to `1.0` for floating-point depth formats and `1000.0` for integer formats (millimeters).
90 ///
91 /// Note that the only effect on 2D views is the physical depth values shown when hovering the image.
92 /// In 3D views on the other hand, this affects where the points of the point cloud are placed.
93 std::optional<ComponentBatch> meter;
94
95 /// Colormap to use for rendering the depth image.
96 ///
97 /// If not set, the depth image will be rendered using the Turbo colormap.
98 std::optional<ComponentBatch> colormap;
99
100 /// The expected range of depth values.
101 ///
102 /// This is typically the expected range of valid values.
103 /// Everything outside of the range is clamped to the range for the purpose of colormpaping.
104 /// Note that point clouds generated from this image will still display all points, regardless of this range.
105 ///
106 /// If not specified, the range will be automatically estimated from the data.
107 /// Note that the Viewer may try to guess a wider range than the minimum/maximum of values
108 /// in the contents of the depth image.
109 /// E.g. if all values are positive, some bigger than 1.0 and all smaller than 255.0,
110 /// the Viewer will guess that the data likely came from an 8bit image, thus assuming a range of 0-255.
111 std::optional<ComponentBatch> depth_range;
112
113 /// Scale the radii of the points in the point cloud generated from this image.
114 ///
115 /// A fill ratio of 1.0 (the default) means that each point is as big as to touch the center of its neighbor
116 /// if it is at the same depth, leaving no gaps.
117 /// A fill ratio of 0.5 means that each point touches the edge of its neighbor if it has the same depth.
118 ///
119 /// TODO(#6744): This applies only to 3D views!
120 std::optional<ComponentBatch> point_fill_ratio;
121
122 /// An optional floating point value that specifies the 2D drawing order, used only if the depth image is shown as a 2D image.
123 ///
124 /// Objects with higher values are drawn on top of those with lower values.
125 /// Defaults to `-20.0`.
126 std::optional<ComponentBatch> draw_order;
127
128 /// Optional filter used when a texel is magnified (displayed larger than a screen pixel) in 2D views.
129 ///
130 /// The filter is applied to the scalar values *before* they are mapped to color via the colormap.
131 ///
132 /// Has no effect in 3D views.
133 std::optional<ComponentBatch> magnification_filter;
134
135 public:
136 /// The name of the archetype as used in `ComponentDescriptor`s.
137 static constexpr const char ArchetypeName[] = "rerun.archetypes.DepthImage";
138
139 /// `ComponentDescriptor` for the `buffer` field.
140 static constexpr auto Descriptor_buffer = ComponentDescriptor(
141 ArchetypeName, "DepthImage:buffer",
143 );
144 /// `ComponentDescriptor` for the `format` field.
145 static constexpr auto Descriptor_format = ComponentDescriptor(
146 ArchetypeName, "DepthImage:format",
148 );
149 /// `ComponentDescriptor` for the `meter` field.
150 static constexpr auto Descriptor_meter = ComponentDescriptor(
151 ArchetypeName, "DepthImage:meter",
153 );
154 /// `ComponentDescriptor` for the `colormap` field.
156 ArchetypeName, "DepthImage:colormap",
158 );
159 /// `ComponentDescriptor` for the `depth_range` field.
161 ArchetypeName, "DepthImage:depth_range",
163 );
164 /// `ComponentDescriptor` for the `point_fill_ratio` field.
166 ArchetypeName, "DepthImage:point_fill_ratio",
168 );
169 /// `ComponentDescriptor` for the `draw_order` field.
171 ArchetypeName, "DepthImage:draw_order",
173 );
174 /// `ComponentDescriptor` for the `magnification_filter` field.
176 ArchetypeName, "DepthImage:magnification_filter",
178 );
179
180 public: // START of extensions from depth_image_ext.cpp:
181 /// Constructs image from pointer + resolution, inferring the datatype from the pointer type.
182 ///
183 /// @param pixels The raw image data.
184 /// ⚠️ Does not take ownership of the data, the caller must ensure the data outlives the image.
185 /// The number of elements is assumed to be `W * H`.
186 /// @param resolution The resolution of the image as {width, height}.
187 template <typename TElement>
188 DepthImage(const TElement* pixels, WidthHeight resolution)
189 : DepthImage{
190 reinterpret_cast<const uint8_t*>(pixels), resolution, get_datatype(pixels)} {}
191
192 /// Constructs image from pixel data + resolution with datatype inferred from the passed collection.
193 ///
194 /// @param pixels The raw image data.
195 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
196 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
197 /// The length of the data should be `W * H`.
198 /// @param resolution The resolution of the image as {width, height}.
199 template <typename TElement>
201 : DepthImage{pixels.to_uint8(), resolution, get_datatype(pixels.data())} {}
202
203 /// Constructs image from pixel data + resolution with explicit datatype. Borrows data from a pointer (i.e. data must outlive the image!).
204 ///
205 /// @param bytes The raw image data.
206 /// ⚠️ Does not take ownership of the data, the caller must ensure the data outlives the image.
207 /// The byte size of the data is assumed to be `W * H * datatype.size`
208 /// @param resolution The resolution of the image as {width, height}.
209 /// @param datatype How the data should be interpreted.
210 DepthImage(const void* bytes, WidthHeight resolution, datatypes::ChannelDatatype datatype)
211 : DepthImage{
212 Collection<uint8_t>::borrow(bytes, num_bytes(resolution, datatype)),
213 resolution,
214 datatype} {}
215
216 /// Constructs image from pixel data + resolution + datatype.
217 ///
218 /// @param bytes The raw image data as bytes.
219 /// If the data does not outlive the image, use `std::move` or create the `rerun::Collection`
220 /// explicitly ahead of time with `rerun::Collection::take_ownership`.
221 /// The length of the data should be `W * H`.
222 /// @param resolution The resolution of the image as {width, height}.
223 /// @param datatype How the data should be interpreted.
226 ) {
227 auto image_format = datatypes::ImageFormat{resolution, datatype};
228 if (bytes.size() != image_format.num_bytes()) {
229 Error(
230 ErrorCode::InvalidTensorDimension,
231 "DepthImage buffer has the wrong size. Got " + std::to_string(bytes.size()) +
232 " bytes, expected " + std::to_string(image_format.num_bytes())
233 )
234 .handle();
235 }
236 *this = std::move(*this).with_buffer(bytes).with_format(image_format);
237 }
238
239 // END of extensions from depth_image_ext.cpp, start of generated code:
240
241 public:
242 DepthImage() = default;
243 DepthImage(DepthImage&& other) = default;
244 DepthImage(const DepthImage& other) = default;
245 DepthImage& operator=(const DepthImage& other) = default;
246 DepthImage& operator=(DepthImage&& other) = default;
247
248 /// Update only some specific fields of a `DepthImage`.
250 return DepthImage();
251 }
252
253 /// Clear all the fields of a `DepthImage`.
255
256 /// The raw depth image data.
258 buffer = ComponentBatch::from_loggable(_buffer, Descriptor_buffer).value_or_throw();
259 return std::move(*this);
260 }
261
262 /// This method makes it possible to pack multiple `buffer` in a single component batch.
263 ///
264 /// This only makes sense when used in conjunction with `columns`. `with_buffer` should
265 /// be used when logging a single row's worth of data.
267 buffer = ComponentBatch::from_loggable(_buffer, Descriptor_buffer).value_or_throw();
268 return std::move(*this);
269 }
270
271 /// The format of the image.
273 format = ComponentBatch::from_loggable(_format, Descriptor_format).value_or_throw();
274 return std::move(*this);
275 }
276
277 /// This method makes it possible to pack multiple `format` in a single component batch.
278 ///
279 /// This only makes sense when used in conjunction with `columns`. `with_format` should
280 /// be used when logging a single row's worth of data.
282 format = ComponentBatch::from_loggable(_format, Descriptor_format).value_or_throw();
283 return std::move(*this);
284 }
285
286 /// An optional floating point value that specifies how long a meter is in the native depth units.
287 ///
288 /// For instance: with uint16, perhaps meter=1000 which would mean you have millimeter precision
289 /// and a range of up to ~65 meters (2^16 / 1000).
290 ///
291 /// If omitted, the Viewer defaults to `1.0` for floating-point depth formats and `1000.0` for integer formats (millimeters).
292 ///
293 /// Note that the only effect on 2D views is the physical depth values shown when hovering the image.
294 /// In 3D views on the other hand, this affects where the points of the point cloud are placed.
296 meter = ComponentBatch::from_loggable(_meter, Descriptor_meter).value_or_throw();
297 return std::move(*this);
298 }
299
300 /// This method makes it possible to pack multiple `meter` in a single component batch.
301 ///
302 /// This only makes sense when used in conjunction with `columns`. `with_meter` should
303 /// be used when logging a single row's worth of data.
305 meter = ComponentBatch::from_loggable(_meter, Descriptor_meter).value_or_throw();
306 return std::move(*this);
307 }
308
309 /// Colormap to use for rendering the depth image.
310 ///
311 /// If not set, the depth image will be rendered using the Turbo colormap.
313 colormap =
314 ComponentBatch::from_loggable(_colormap, Descriptor_colormap).value_or_throw();
315 return std::move(*this);
316 }
317
318 /// This method makes it possible to pack multiple `colormap` in a single component batch.
319 ///
320 /// This only makes sense when used in conjunction with `columns`. `with_colormap` should
321 /// be used when logging a single row's worth of data.
323 colormap =
324 ComponentBatch::from_loggable(_colormap, Descriptor_colormap).value_or_throw();
325 return std::move(*this);
326 }
327
328 /// The expected range of depth values.
329 ///
330 /// This is typically the expected range of valid values.
331 /// Everything outside of the range is clamped to the range for the purpose of colormpaping.
332 /// Note that point clouds generated from this image will still display all points, regardless of this range.
333 ///
334 /// If not specified, the range will be automatically estimated from the data.
335 /// Note that the Viewer may try to guess a wider range than the minimum/maximum of values
336 /// in the contents of the depth image.
337 /// E.g. if all values are positive, some bigger than 1.0 and all smaller than 255.0,
338 /// the Viewer will guess that the data likely came from an 8bit image, thus assuming a range of 0-255.
341 .value_or_throw();
342 return std::move(*this);
343 }
344
345 /// This method makes it possible to pack multiple `depth_range` in a single component batch.
346 ///
347 /// This only makes sense when used in conjunction with `columns`. `with_depth_range` should
348 /// be used when logging a single row's worth of data.
351 ) && {
353 .value_or_throw();
354 return std::move(*this);
355 }
356
357 /// Scale the radii of the points in the point cloud generated from this image.
358 ///
359 /// A fill ratio of 1.0 (the default) means that each point is as big as to touch the center of its neighbor
360 /// if it is at the same depth, leaving no gaps.
361 /// A fill ratio of 0.5 means that each point touches the edge of its neighbor if it has the same depth.
362 ///
363 /// TODO(#6744): This applies only to 3D views!
367 .value_or_throw();
368 return std::move(*this);
369 }
370
371 /// This method makes it possible to pack multiple `point_fill_ratio` in a single component batch.
372 ///
373 /// This only makes sense when used in conjunction with `columns`. `with_point_fill_ratio` should
374 /// be used when logging a single row's worth of data.
376 const Collection<rerun::components::FillRatio>& _point_fill_ratio
377 ) && {
380 .value_or_throw();
381 return std::move(*this);
382 }
383
384 /// An optional floating point value that specifies the 2D drawing order, used only if the depth image is shown as a 2D image.
385 ///
386 /// Objects with higher values are drawn on top of those with lower values.
387 /// Defaults to `-20.0`.
389 draw_order =
390 ComponentBatch::from_loggable(_draw_order, Descriptor_draw_order).value_or_throw();
391 return std::move(*this);
392 }
393
394 /// This method makes it possible to pack multiple `draw_order` in a single component batch.
395 ///
396 /// This only makes sense when used in conjunction with `columns`. `with_draw_order` should
397 /// be used when logging a single row's worth of data.
399 ) && {
400 draw_order =
401 ComponentBatch::from_loggable(_draw_order, Descriptor_draw_order).value_or_throw();
402 return std::move(*this);
403 }
404
405 /// Optional filter used when a texel is magnified (displayed larger than a screen pixel) in 2D views.
406 ///
407 /// The filter is applied to the scalar values *before* they are mapped to color via the colormap.
408 ///
409 /// Has no effect in 3D views.
411 const rerun::components::MagnificationFilter& _magnification_filter
412 ) && {
414 _magnification_filter,
416 )
417 .value_or_throw();
418 return std::move(*this);
419 }
420
421 /// This method makes it possible to pack multiple `magnification_filter` in a single component batch.
422 ///
423 /// This only makes sense when used in conjunction with `columns`. `with_magnification_filter` should
424 /// be used when logging a single row's worth of data.
426 const Collection<rerun::components::MagnificationFilter>& _magnification_filter
427 ) && {
429 _magnification_filter,
431 )
432 .value_or_throw();
433 return std::move(*this);
434 }
435
436 /// Partitions the component data into multiple sub-batches.
437 ///
438 /// Specifically, this transforms the existing `ComponentBatch` data into `ComponentColumn`s
439 /// instead, via `ComponentBatch::partitioned`.
440 ///
441 /// This makes it possible to use `RecordingStream::send_columns` to send columnar data directly into Rerun.
442 ///
443 /// The specified `lengths` must sum to the total length of the component batch.
445
446 /// Partitions the component data into unit-length sub-batches.
447 ///
448 /// This is semantically similar to calling `columns` with `std::vector<uint32_t>(n, 1)`,
449 /// where `n` is automatically guessed.
451 };
452
453} // namespace rerun::archetypes
454
455namespace rerun {
456 /// \private
457 template <typename T>
458 struct AsComponents;
459
460 /// \private
461 template <>
462 struct AsComponents<archetypes::DepthImage> {
463 /// Serialize all set component batches.
464 static Result<Collection<ComponentBatch>> as_batches(const archetypes::DepthImage& archetype
465 );
466 };
467} // 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:76
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:77
DepthImage with_colormap(const rerun::components::Colormap &_colormap) &&
Colormap to use for rendering the depth image.
Definition depth_image.hpp:312
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:295
std::optional< ComponentBatch > format
The format of the image.
Definition depth_image.hpp:82
static constexpr auto Descriptor_depth_range
ComponentDescriptor for the depth_range field.
Definition depth_image.hpp:160
static constexpr const char ArchetypeName[]
The name of the archetype as used in ComponentDescriptors.
Definition depth_image.hpp:137
DepthImage(Collection< uint8_t > bytes, WidthHeight resolution, datatypes::ChannelDatatype datatype)
Constructs image from pixel data + resolution + datatype.
Definition depth_image.hpp:224
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:425
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:410
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:364
static constexpr auto Descriptor_point_fill_ratio
ComponentDescriptor for the point_fill_ratio field.
Definition depth_image.hpp:165
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:133
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:398
static DepthImage update_fields()
Update only some specific fields of a DepthImage.
Definition depth_image.hpp:249
std::optional< ComponentBatch > colormap
Colormap to use for rendering the depth image.
Definition depth_image.hpp:98
std::optional< ComponentBatch > depth_range
The expected range of depth values.
Definition depth_image.hpp:111
static constexpr auto Descriptor_format
ComponentDescriptor for the format field.
Definition depth_image.hpp:145
DepthImage with_depth_range(const rerun::components::ValueRange &_depth_range) &&
The expected range of depth values.
Definition depth_image.hpp:339
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:155
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:93
DepthImage(Collection< TElement > pixels, WidthHeight resolution)
Constructs image from pixel data + resolution with datatype inferred from the passed collection.
Definition depth_image.hpp:200
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:126
static constexpr auto Descriptor_draw_order
ComponentDescriptor for the draw_order field.
Definition depth_image.hpp:170
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:375
static constexpr auto Descriptor_buffer
ComponentDescriptor for the buffer field.
Definition depth_image.hpp:140
DepthImage(const void *bytes, WidthHeight resolution, datatypes::ChannelDatatype datatype)
Constructs image from pixel data + resolution with explicit datatype.
Definition depth_image.hpp:210
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:322
DepthImage(const TElement *pixels, WidthHeight resolution)
Constructs image from pointer + resolution, inferring the datatype from the pointer type.
Definition depth_image.hpp:188
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:304
std::optional< ComponentBatch > point_fill_ratio
Scale the radii of the points in the point cloud generated from this image.
Definition depth_image.hpp:120
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:272
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:349
DepthImage with_buffer(const rerun::components::ImageBuffer &_buffer) &&
The raw depth image data.
Definition depth_image.hpp:257
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:281
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:388
static constexpr auto Descriptor_magnification_filter
ComponentDescriptor for the magnification_filter field.
Definition depth_image.hpp:175
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:266
static constexpr auto Descriptor_meter
ComponentDescriptor for the meter field.
Definition depth_image.hpp:150
std::optional< ComponentBatch > buffer
The raw depth image data.
Definition depth_image.hpp:79
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