Calibration Library 1.0.0
A C++ library for camera calibration and vision-related geometric transformations
Loading...
Searching...
No Matches
posefromhomography.h
Go to the documentation of this file.
1
3#pragma once
4
5// std
6#include <string>
7
8// eigen
9#include <Eigen/Core>
10#include <Eigen/Geometry>
11
13
14namespace calib {
15
32struct PoseFromHResult final {
33 bool success{false};
34 Eigen::Isometry3d c_se3_t = Eigen::Isometry3d::Identity(); // camera_T_target
35 double scale{1.0}; // internal homography scale s
36 double cond_check{1.0}; // ratio of ||h1|| and ||h2|| (close to 1 is good)
37 std::string message;
38};
39
41
52auto pose_from_homography(const CameraMatrix& kmtx, const Eigen::Matrix3d& hmtx) -> PoseFromHResult;
53
58auto homography_consistency_fro(const CameraMatrix& kmtx, const Eigen::Isometry3d& c_se3_t,
59 const Eigen::Matrix3d& hmtx) -> double;
60
61} // namespace calib
Linear multi-camera extrinsics initialisation (DLT)
auto pose_from_homography(const CameraMatrix &kmtx, const Eigen::Matrix3d &hmtx) -> PoseFromHResult
Estimates the camera pose from a homography matrix.
auto homography_consistency_fro(const CameraMatrix &kmtx, const Eigen::Isometry3d &c_se3_t, const Eigen::Matrix3d &hmtx) -> double
A quick consistency check.
Recover target->camera pose (R,t) from camera matrix K and planar homography H.
Eigen::Isometry3d c_se3_t