6#include "../datatypes/mat3x3.hpp"
7#include "../result.hpp"
16 class FixedSizeListBuilder;
46 : image_from_camera(image_from_camera_) {}
49 image_from_camera = image_from_camera_;
53 PinholeProjection(std::array<float, 9> flat_columns_) : image_from_camera(flat_columns_) {}
55 PinholeProjection& operator=(std::array<float, 9> flat_columns_) {
56 image_from_camera = flat_columns_;
62 return image_from_camera;
73 struct Loggable<components::PinholeProjection> {
74 static constexpr const char Name[] =
"rerun.components.PinholeProjection";
77 static const std::shared_ptr<arrow::DataType>& arrow_datatype();
81 arrow::FixedSizeListBuilder* builder,
const components::PinholeProjection* elements,
86 static Result<std::shared_ptr<arrow::Array>> to_arrow(
87 const components::PinholeProjection* instances,
size_t num_instances
Status outcome object (success or error) returned for fallible operations.
Definition error.hpp:87
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:69
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:20
Component: Camera projection, from image coordinates to view coordinates.
Definition pinhole_projection.hpp:31
static PinholeProjection from_mat3x3(const float *elements)
Construct a new 3x3 pinhole matrix from a pointer to 9 floats (in row major order).
Definition pinhole_projection.hpp:38
Datatype: A 3x3 Matrix.
Definition mat3x3.hpp:30