|
Rerun C++ SDK
|
Archetype: Configures how tensor scalars are mapped to color. More...
#include <rerun/blueprint/archetypes/tensor_scalar_mapping.hpp>
Public Member Functions | |
| TensorScalarMapping (TensorScalarMapping &&other)=default | |
| TensorScalarMapping (const TensorScalarMapping &other)=default | |
| TensorScalarMapping & | operator= (const TensorScalarMapping &other)=default |
| TensorScalarMapping & | operator= (TensorScalarMapping &&other)=default |
| TensorScalarMapping | with_mag_filter (const rerun::components::MagnificationFilter &_mag_filter) && |
| Filter used when zooming in on the tensor. | |
| TensorScalarMapping | with_colormap (const rerun::components::Colormap &_colormap) && |
| How scalar values map to colors. | |
| TensorScalarMapping | with_gamma (const rerun::components::GammaCorrection &_gamma) && |
| Gamma exponent applied to normalized values before mapping to color. | |
| 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 TensorScalarMapping | update_fields () |
Update only some specific fields of a TensorScalarMapping. | |
| static TensorScalarMapping | clear_fields () |
Clear all the fields of a TensorScalarMapping. | |
Public Attributes | |
| std::optional< ComponentBatch > | mag_filter |
| Filter used when zooming in on the tensor. | |
| std::optional< ComponentBatch > | colormap |
| How scalar values map to colors. | |
| std::optional< ComponentBatch > | gamma |
| Gamma exponent applied to normalized values before mapping to color. | |
Static Public Attributes | |
| static constexpr const char | ArchetypeName [] |
The name of the archetype as used in ComponentDescriptors. | |
| static constexpr auto | Descriptor_mag_filter |
ComponentDescriptor for the mag_filter field. | |
| static constexpr auto | Descriptor_colormap |
ComponentDescriptor for the colormap field. | |
| static constexpr auto | Descriptor_gamma |
ComponentDescriptor for the gamma field. | |
Archetype: Configures how tensor scalars are mapped to color.
⚠ This type is unstable and may change significantly in a way that the data won't be backwards compatible.
|
inline |
Filter used when zooming in on the tensor.
Note that the filter is applied to the scalar values before they are mapped to color.
|
inline |
Gamma exponent applied to normalized values before mapping to color.
Raises the normalized values to the power of this value before mapping to color. Acts like an inverse brightness. Defaults to 1.0.
The final value for display is set as: colormap( ((value - data_display_range.min) / (data_display_range.max - data_display_range.min)) ** gamma )
| Collection< ComponentColumn > rerun::blueprint::archetypes::TensorScalarMapping::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::blueprint::archetypes::TensorScalarMapping::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::blueprint::archetypes::TensorScalarMapping::mag_filter |
Filter used when zooming in on the tensor.
Note that the filter is applied to the scalar values before they are mapped to color.
| std::optional<ComponentBatch> rerun::blueprint::archetypes::TensorScalarMapping::gamma |
Gamma exponent applied to normalized values before mapping to color.
Raises the normalized values to the power of this value before mapping to color. Acts like an inverse brightness. Defaults to 1.0.
The final value for display is set as: colormap( ((value - data_display_range.min) / (data_display_range.max - data_display_range.min)) ** gamma )
|
staticconstexpr |
The name of the archetype as used in ComponentDescriptors.
|
staticconstexpr |
ComponentDescriptor for the mag_filter field.
|
staticconstexpr |
ComponentDescriptor for the colormap field.
|
staticconstexpr |
ComponentDescriptor for the gamma field.