|
Rerun C++ SDK
|
Archetype: A depth image encoded with a codec (e.g. More...
#include <rerun/archetypes/encoded_depth_image.hpp>
Public Member Functions | |
| EncodedDepthImage (EncodedDepthImage &&other)=default | |
| EncodedDepthImage (const EncodedDepthImage &other)=default | |
| EncodedDepthImage & | operator= (const EncodedDepthImage &other)=default |
| EncodedDepthImage & | operator= (EncodedDepthImage &&other)=default |
| EncodedDepthImage (rerun::components::Blob _blob) | |
| EncodedDepthImage | with_blob (const rerun::components::Blob &_blob) && |
| The encoded depth payload. | |
| EncodedDepthImage | with_many_blob (const Collection< rerun::components::Blob > &_blob) && |
This method makes it possible to pack multiple blob in a single component batch. | |
| EncodedDepthImage | with_media_type (const rerun::components::MediaType &_media_type) && |
| Media type of the blob, e.g.: | |
| EncodedDepthImage | with_many_media_type (const Collection< rerun::components::MediaType > &_media_type) && |
This method makes it possible to pack multiple media_type in a single component batch. | |
| EncodedDepthImage | with_meter (const rerun::components::DepthMeter &_meter) && |
| Conversion from native units to meters (e.g. | |
| EncodedDepthImage | with_many_meter (const Collection< rerun::components::DepthMeter > &_meter) && |
This method makes it possible to pack multiple meter in a single component batch. | |
| EncodedDepthImage | with_colormap (const rerun::components::Colormap &_colormap) && |
| Optional colormap for visualization of decoded depth. | |
| EncodedDepthImage | with_many_colormap (const Collection< rerun::components::Colormap > &_colormap) && |
This method makes it possible to pack multiple colormap in a single component batch. | |
| EncodedDepthImage | with_depth_range (const rerun::components::ValueRange &_depth_range) && |
| Optional visualization range for depth values. | |
| EncodedDepthImage | 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. | |
| EncodedDepthImage | with_point_fill_ratio (const rerun::components::FillRatio &_point_fill_ratio) && |
| Optional point fill ratio for point-cloud projection. | |
| EncodedDepthImage | 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. | |
| EncodedDepthImage | with_draw_order (const rerun::components::DrawOrder &_draw_order) && |
| Optional 2D draw order. | |
| EncodedDepthImage | 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. | |
| Collection< ComponentColumn > | columns (const Collection< uint32_t > &lengths_) |
| Partitions the component data into multiple sub-batches. | |
| Collection< ComponentColumn > | columns () |
| Partitions the component data into unit-length sub-batches. | |
Static Public Member Functions | |
| static EncodedDepthImage | update_fields () |
Update only some specific fields of a EncodedDepthImage. | |
| static EncodedDepthImage | clear_fields () |
Clear all the fields of a EncodedDepthImage. | |
Public Attributes | |
| std::optional< ComponentBatch > | blob |
| The encoded depth payload. | |
| std::optional< ComponentBatch > | media_type |
| Media type of the blob, e.g.: | |
| std::optional< ComponentBatch > | meter |
| Conversion from native units to meters (e.g. | |
| std::optional< ComponentBatch > | colormap |
| Optional colormap for visualization of decoded depth. | |
| std::optional< ComponentBatch > | depth_range |
| Optional visualization range for depth values. | |
| std::optional< ComponentBatch > | point_fill_ratio |
| Optional point fill ratio for point-cloud projection. | |
| std::optional< ComponentBatch > | draw_order |
| Optional 2D draw order. | |
Static Public Attributes | |
| static constexpr const char | ArchetypeName [] = "rerun.archetypes.EncodedDepthImage" |
The name of the archetype as used in ComponentDescriptors. | |
| static constexpr auto | Descriptor_blob |
ComponentDescriptor for the blob field. | |
| static constexpr auto | Descriptor_media_type |
ComponentDescriptor for the media_type field. | |
| static constexpr auto | Descriptor_meter |
ComponentDescriptor for the meter field. | |
| static constexpr auto | Descriptor_colormap |
ComponentDescriptor for the colormap field. | |
| static constexpr auto | Descriptor_depth_range |
ComponentDescriptor for the depth_range field. | |
| static constexpr auto | Descriptor_point_fill_ratio |
ComponentDescriptor for the point_fill_ratio field. | |
| static constexpr auto | Descriptor_draw_order |
ComponentDescriptor for the draw_order field. | |
Archetype: A depth image encoded with a codec (e.g.
RVL or PNG).
Rerun also supports uncompressed depth images with the archetypes.DepthImage.

⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
The encoded depth payload.
Supported are:
|
inline |
This method makes it possible to pack multiple blob in a single component batch.
This only makes sense when used in conjunction with columns. with_blob should be used when logging a single row's worth of data.
|
inline |
Media type of the blob, e.g.:
application/rvl (RVL-compressed 16-bit)image/png
|
inline |
This method makes it possible to pack multiple media_type in a single component batch.
This only makes sense when used in conjunction with columns. with_media_type should be used when logging a single row's worth of data.
|
inline |
Conversion from native units to meters (e.g.
0.001 for millimeters).
If omitted, the Viewer defaults to 1.0 for floating-point depth formats and 1000.0 for integer formats (millimeters).
|
inline |
This method makes it possible to pack multiple meter in a single component batch.
This only makes sense when used in conjunction with columns. with_meter should be used when logging a single row's worth of data.
|
inline |
This method makes it possible to pack multiple colormap in a single component batch.
This only makes sense when used in conjunction with columns. with_colormap should be used when logging a single row's worth of data.
|
inline |
This method makes it possible to pack multiple depth_range in a single component batch.
This only makes sense when used in conjunction with columns. with_depth_range should be used when logging a single row's worth of data.
|
inline |
This method makes it possible to pack multiple point_fill_ratio in a single component batch.
This only makes sense when used in conjunction with columns. with_point_fill_ratio should be used when logging a single row's worth of data.
|
inline |
This method makes it possible to pack multiple draw_order in a single component batch.
This only makes sense when used in conjunction with columns. with_draw_order should be used when logging a single row's worth of data.
| Collection< ComponentColumn > rerun::archetypes::EncodedDepthImage::columns | ( | const Collection< uint32_t > & | lengths_ | ) |
Partitions the component data into multiple sub-batches.
Specifically, this transforms the existing ComponentBatch data into ComponentColumns instead, via ComponentBatch::partitioned.
This makes it possible to use RecordingStream::send_columns to send columnar data directly into Rerun.
The specified lengths must sum to the total length of the component batch.
| Collection< ComponentColumn > rerun::archetypes::EncodedDepthImage::columns | ( | ) |
Partitions the component data into unit-length sub-batches.
This is semantically similar to calling columns with std::vector<uint32_t>(n, 1), where n is automatically guessed.
| std::optional<ComponentBatch> rerun::archetypes::EncodedDepthImage::blob |
The encoded depth payload.
Supported are:
| std::optional<ComponentBatch> rerun::archetypes::EncodedDepthImage::media_type |
Media type of the blob, e.g.:
application/rvl (RVL-compressed 16-bit)image/png | std::optional<ComponentBatch> rerun::archetypes::EncodedDepthImage::meter |
Conversion from native units to meters (e.g.
0.001 for millimeters).
If omitted, the Viewer defaults to 1.0 for floating-point depth formats and 1000.0 for integer formats (millimeters).
|
staticconstexpr |
ComponentDescriptor for the blob field.
|
staticconstexpr |
ComponentDescriptor for the media_type field.
|
staticconstexpr |
ComponentDescriptor for the meter field.
|
staticconstexpr |
ComponentDescriptor for the colormap field.
|
staticconstexpr |
ComponentDescriptor for the depth_range field.
|
staticconstexpr |
ComponentDescriptor for the point_fill_ratio field.
|
staticconstexpr |
ComponentDescriptor for the draw_order field.