File: relpose_6pt_focal.h

package info (click to toggle)
poselib 2.0.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,592 kB
  • sloc: cpp: 15,023; python: 182; sh: 85; makefile: 16
file content (17 lines) | stat: -rw-r--r-- 523 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef POSELIB_RELPOSE_6PT_EQUAL_FOCAL_H
#define POSELIB_RELPOSE_6PT_EQUAL_FOCAL_H

#include "PoseLib/camera_pose.h"

#include <Eigen/Dense>
#include <vector>

namespace poselib {

// Solves for relative pose with one unknown focal length from 6 correspondences
// The solver is created using Larsson et al. CVPR 2017
int relpose_6pt_shared_focal(const std::vector<Eigen::Vector3d> &x1, const std::vector<Eigen::Vector3d> &x2,
                             ImagePairVector *out_image_pairs);
}; // namespace poselib

#endif