6#include "../datatypes/mat3x3.hpp"
7#include "../result.hpp"
40 : image_from_camera(image_from_camera_) {}
43 image_from_camera = image_from_camera_;
47 PinholeProjection(std::array<float, 9> flat_columns_) : image_from_camera(flat_columns_) {}
49 PinholeProjection& operator=(std::array<float, 9> flat_columns_) {
50 image_from_camera = flat_columns_;
56 return image_from_camera;
66 struct Loggable<components::PinholeProjection> {
67 static constexpr const char Name[] =
"rerun.components.PinholeProjection";
70 static const std::shared_ptr<arrow::DataType>& arrow_datatype() {
71 return Loggable<rerun::datatypes::Mat3x3>::arrow_datatype();
75 static Result<std::shared_ptr<arrow::Array>> to_arrow(
76 const components::PinholeProjection* instances,
size_t num_instances
78 return Loggable<rerun::datatypes::Mat3x3>::to_arrow(
79 &instances->image_from_camera,
All built-in components. See Types in the Rerun manual.
Definition rerun.hpp:75
All Rerun C++ types and functions are in the rerun namespace or one of its nested namespaces.
Definition rerun.hpp:22
Component: Camera projection, from image coordinates to view coordinates.
Definition pinhole_projection.hpp:25
static PinholeProjection from_mat3x3(const float *elements)
Construct a new 3x3 pinhole matrix from a pointer to 9 floats (in column major order).
Definition pinhole_projection.hpp:30
Datatype: A 3x3 Matrix.
Definition mat3x3.hpp:31