ReUseX
0.0.5
3D Point Cloud Processing for Building Reuse
Loading...
Searching...
No Matches
SensorIntrinsics.hpp
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2025 Povl Filip Sonne-Frederiksen
2
//
3
// SPDX-License-Identifier: GPL-3.0-or-later
4
5
#pragma once
6
7
#include <array>
8
#include <string>
9
10
namespace
reusex::core
{
11
14
struct
SensorIntrinsics
{
15
double
fx
= 0,
fy
= 0,
cx
= 0,
cy
= 0;
16
int
width
= 0,
height
= 0;
18
std::array<double, 16>
local_transform
= {1, 0, 0, 0, 0, 1, 0, 0,
19
0, 0, 1, 0, 0, 0, 0, 1};
20
22
std::string
to_json
()
const
;
23
25
static
SensorIntrinsics
from_json
(
const
std::string &json);
26
};
27
28
}
// namespace reusex::core
reusex::core
Definition
filter_expression.hpp:17
reusex::core::SensorIntrinsics
Lightweight camera intrinsics replacing rtabmap::CameraModel in downstream code.
Definition
SensorIntrinsics.hpp:14
reusex::core::SensorIntrinsics::local_transform
std::array< double, 16 > local_transform
4x4 row-major local transform (camera frame to robot/sensor base frame).
Definition
SensorIntrinsics.hpp:18
reusex::core::SensorIntrinsics::cy
double cy
Definition
SensorIntrinsics.hpp:15
reusex::core::SensorIntrinsics::height
int height
Definition
SensorIntrinsics.hpp:16
reusex::core::SensorIntrinsics::fy
double fy
Definition
SensorIntrinsics.hpp:15
reusex::core::SensorIntrinsics::cx
double cx
Definition
SensorIntrinsics.hpp:15
reusex::core::SensorIntrinsics::fx
double fx
Definition
SensorIntrinsics.hpp:15
reusex::core::SensorIntrinsics::width
int width
Definition
SensorIntrinsics.hpp:16
reusex::core::SensorIntrinsics::to_json
std::string to_json() const
Serialize to JSON string for storage in ProjectDB.
reusex::core::SensorIntrinsics::from_json
static SensorIntrinsics from_json(const std::string &json)
Deserialize from JSON string. Returns default-constructed on failure.
libs
reusex
include
core
SensorIntrinsics.hpp
Generated by
1.16.1