MRPT
2.0.1
|
#include <pnp/lhm.h>
Public Member Functions | |
lhm (Eigen::MatrixXd obj_pts_, Eigen::MatrixXd img_pts_, Eigen::MatrixXd cam_, int n0) | |
Number of 2d/3d correspondences. More... | |
bool | compute_pose (Eigen::Ref< Eigen::Matrix3d > R_, Eigen::Ref< Eigen::Vector3d > t_) |
Function to compute pose using LHM PnP algorithm. More... | |
void | absKernel () |
Function to compute pose during an iteration. More... | |
void | estimate_t () |
Function to estimate translation given an estimated rotation matrix. More... | |
void | xform () |
Transform object points in Body frame (Landmark Frame) to estimated Camera Frame. More... | |
Eigen::Matrix4d | qMatQ (Eigen::VectorXd q) |
Iternal Function of quaternion. More... | |
Eigen::Matrix4d | qMatW (Eigen::VectorXd q) |
Iternal Function of quaternion. More... | |
Private Attributes | |
Eigen::MatrixXd | obj_pts |
Eigen::MatrixXd | img_pts |
Object points in Camera Co-ordinate system. More... | |
Eigen::MatrixXd | cam_intrinsic |
Image points in pixel co-ordinates. More... | |
Eigen::MatrixXd | P |
Camera intrinsic matrix. More... | |
Eigen::MatrixXd | Q |
Trnaspose of Object points . More... | |
Eigen::Matrix3d | R |
Transpose of Image points . More... | |
Eigen::Matrix3d | G |
Matrix for internal computations. More... | |
Eigen::Vector3d | t |
Rotation Matrix. More... | |
std::vector< Eigen::Matrix3d > | F |
Translation Vector. More... | |
double | err |
Storage matrix for each point. More... | |
double | err2 |
Error variable for convergence selection. More... | |
int | n |
Error variable for convergence selection. More... | |
lhm::lhm | ( | Eigen::MatrixXd | obj_pts_, |
Eigen::MatrixXd | img_pts_, | ||
Eigen::MatrixXd | cam_, | ||
int | n0 | ||
) |
void lhm::absKernel | ( | ) |
bool lhm::compute_pose | ( | Eigen::Ref< Eigen::Matrix3d > | R_, |
Eigen::Ref< Eigen::Vector3d > | t_ | ||
) |
Function to compute pose using LHM PnP algorithm.
R_ | Rotation matrix |
t_ | Trnaslation Vector |
Definition at line 187 of file lhm.cpp.
References absKernel(), EPSILON_LHM, err, err2, F, G, n, P, Q, R, t, and TOL_LHM.
Referenced by mrpt::vision::pnp::CPnP::lhm().
void lhm::estimate_t | ( | ) |
Eigen::Matrix4d lhm::qMatQ | ( | Eigen::VectorXd | q | ) |
Iternal Function of quaternion.
q | Quaternion |
Definition at line 54 of file lhm.cpp.
Referenced by absKernel().
Eigen::Matrix4d lhm::qMatW | ( | Eigen::VectorXd | q | ) |
Iternal Function of quaternion.
q | Quaternion |
Definition at line 64 of file lhm.cpp.
Referenced by absKernel().
void lhm::xform | ( | ) |
|
private |
|
private |
|
private |
Error variable for convergence selection.
Definition at line 53 of file lhm.h.
Referenced by absKernel(), and compute_pose().
|
private |
Translation Vector.
Definition at line 51 of file lhm.h.
Referenced by absKernel(), compute_pose(), and estimate_t().
|
private |
Matrix for internal computations.
Definition at line 48 of file lhm.h.
Referenced by compute_pose(), and estimate_t().
|
private |
|
private |
Error variable for convergence selection.
Definition at line 55 of file lhm.h.
Referenced by absKernel(), compute_pose(), estimate_t(), lhm(), and xform().
|
private |
|
private |
Camera intrinsic matrix.
Definition at line 44 of file lhm.h.
Referenced by absKernel(), compute_pose(), estimate_t(), lhm(), and xform().
|
private |
Trnaspose of Object points .
Definition at line 45 of file lhm.h.
Referenced by absKernel(), compute_pose(), lhm(), and xform().
|
private |
Transpose of Image points .
Definition at line 47 of file lhm.h.
Referenced by absKernel(), compute_pose(), estimate_t(), and xform().
|
private |
Rotation Matrix.
Definition at line 49 of file lhm.h.
Referenced by compute_pose(), estimate_t(), lhm(), and xform().
Page generated by Doxygen 1.8.14 for MRPT 2.0.1 Git: 0fef1a6d7 Fri Apr 3 23:00:21 2020 +0200 at vie abr 3 23:20:28 CEST 2020 |