Skip to content

Commit eac0751

Browse files
committed
rename type: CameraMatrixK -> CameraIntrinsics
1 parent 9b3a3e3 commit eac0751

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

vortex_utils/include/vortex/utils/types.hpp

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,14 @@ struct Pose;
2626
*/
2727
struct Twist;
2828

29+
/**
30+
* @brief Camera intrinsic parameters for an ideal pinhole (perspective) camera,
31+
* following Eq. (2.57) in
32+
* Szeliski, R., Computer Vision: Algorithms and Applications,
33+
* 2nd ed., Springer, 2022.
34+
*/
35+
struct CameraIntrinsics;
36+
2937
struct PoseEuler {
3038
double x{};
3139
double y{};
@@ -328,7 +336,7 @@ inline PoseEuler Pose::as_pose_euler() const {
328336
.yaw = euler_angles(2)};
329337
return eta;
330338
}
331-
struct CameraMatrixK {
339+
struct CameraIntrinsics {
332340
double fx{};
333341
double fy{};
334342
double cx{};
@@ -344,6 +352,11 @@ struct CameraMatrixK {
344352
}
345353
}
346354

355+
/**
356+
* @brief Get the camera intrinsic matrix K
357+
* according to Eq. (2.57) in Szeliski, 2022.
358+
* @return Eigen::Matrix3d K
359+
*/
347360
Eigen::Matrix3d K() const {
348361
validate_focals();
349362
Eigen::Matrix3d k = Eigen::Matrix3d::Identity();

0 commit comments

Comments
 (0)