11 #include <Eigen/Geometry>
31 const Eigen::Transform<double, 3, Eigen::Affine>& transform);
34 const Eigen::Vector4d& qvec,
35 const Eigen::Vector3d& tvec);
39 template <
bool kEstimateScale = true>
40 bool Estimate(
const std::vector<Eigen::Vector3d>& src,
41 const std::vector<Eigen::Vector3d>& dst);
46 void TransformPose(Eigen::Vector4d* qvec, Eigen::Vector3d* tvec)
const;
48 Eigen::Matrix4d
Matrix()
const;
56 Eigen::Transform<double, 3, Eigen::Affine> transform_;
68 const double min_inlier_observations,
69 const double max_reproj_error,
76 template <
bool kEstimateScale>
78 const std::vector<Eigen::Vector3d>& dst) {
82 if (results.empty()) {
86 CHECK_EQ(results.size(), 1);
87 transform_.matrix().topLeftCorner<3, 4>() = results[0];
Matrix< double, 3, 4 > Matrix3x4d
static const std::string path
bool ComputeAlignmentBetweenReconstructions(const Reconstruction &src_reconstruction, const Reconstruction &ref_reconstruction, const double min_inlier_observations, const double max_reproj_error, Eigen::Matrix3x4d *alignment)