6#include "../collection.hpp"
7#include "../compiler_utils.hpp"
8#include "../components/draw_order.hpp"
9#include "../components/tensor_data.hpp"
10#include "../data_cell.hpp"
11#include "../indicator_component.hpp"
12#include "../result.hpp"
80 static constexpr const char IndicatorComponentName[] =
81 "rerun.components.SegmentationImageIndicator";
118 template <
typename TElement>
134 RERUN_WITH_MAYBE_UNINITIALIZED_DISABLED(
return std::move(*
this);)
147 template <
typename T>
152 struct AsComponents<archetypes::SegmentationImage> {
154 static Result<std::vector<DataCell>> serialize(
155 const archetypes::SegmentationImage& archetype
Generic collection of elements that are roughly contiguous in memory.
Definition collection.hpp:47
All built-in archetypes. See Types in the Rerun manual.
Definition rerun.hpp:66
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Archetype: An image made up of integer class-ids.
Definition segmentation_image.hpp:70
std::optional< rerun::components::DrawOrder > draw_order
An optional floating point value that specifies the 2D drawing order.
Definition segmentation_image.hpp:77
SegmentationImage(Collection< datatypes::TensorDimension > shape, datatypes::TensorBuffer buffer)
New segmentation image from height/width and tensor buffer.
Definition segmentation_image.hpp:96
SegmentationImage(Collection< datatypes::TensorDimension > shape, const TElement *data_)
New segmentation image from dimensions and pointer to segmentation image data.
Definition segmentation_image.hpp:119
size_t num_instances() const
Returns the number of primary instances of this archetype.
Definition segmentation_image.hpp:138
SegmentationImage(components::TensorData data_)
New segmentation image from tensor data.
rerun::components::TensorData data
The image data. Should always be a rank-2 tensor.
Definition segmentation_image.hpp:72
SegmentationImage with_draw_order(rerun::components::DrawOrder _draw_order) &&
An optional floating point value that specifies the 2D drawing order.
Definition segmentation_image.hpp:131
Component: Draw order used for the display order of 2D elements.
Definition draw_order.hpp:30
Indicator component used by archetypes when converting them to component lists.
Definition indicator_component.hpp:23
Component: A multi-dimensional Tensor with optionally named arguments.
Definition tensor_data.hpp:21
Datatype: The underlying storage for a Tensor.
Definition tensor_buffer.hpp:93
Datatype: A multi-dimensional Tensor of data.
Definition tensor_data.hpp:29