7#include "../result.hpp"
16 class FixedSizeListBuilder;
78 struct Loggable<datatypes::SphericalHarmonics3Rgb> {
79 static constexpr std::string_view ComponentType =
"rerun.datatypes.SphericalHarmonics3Rgb";
82 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
85 static Result<std::shared_ptr<arrow::Array>> to_arrow(
86 const datatypes::SphericalHarmonics3Rgb* instances,
size_t num_instances
91 arrow::FixedSizeListBuilder* builder,
const datatypes::SphericalHarmonics3Rgb* elements,
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:103
All built-in datatypes. See Types in the Rerun manual.
Definition rerun.hpp:93
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:23
Datatype: Spherical harmonics coefficients of degrees 1 through 3 for RGB, as 15 half-precision RGB t...
Definition spherical_harmonics3rgb.hpp:43
static constexpr size_t NUM_COEFFICIENTS
The number of coefficients of degrees 1 through 3, i.e. the number of RGB triples.
Definition spherical_harmonics3rgb.hpp:49
std::array< std::array< rerun::half, 3 >, 15 > coefficients
Spherical harmonics coefficients of degrees 1 through 3, coefficient-major.
Definition spherical_harmonics3rgb.hpp:45
SphericalHarmonics3Rgb(const std::array< std::array< float, 3 >, NUM_COEFFICIENTS > &coefficients_)
Construct from 15 RGB coefficient triples of float, converting each to half-precision.