1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 07:13:02 +04:00
Files
opencv/modules/3d/src/p3p.h
T
Alexander Smorkalov 98bf72b319 Merge branch 4.x
2025-10-23 08:11:04 +03:00

26 lines
608 B
C++

// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html
#ifndef P3P_H
#define P3P_H
#include "precomp.hpp"
namespace cv {
class p3p {
public:
p3p();
int estimate(std::vector<cv::Mat>& Rs, std::vector<cv::Mat>& ts, const cv::Mat& opoints, const cv::Mat& ipoints);
private:
void calibrateAndNormalizePointsPnP(const cv::Mat& opoints, const cv::Mat& ipoints);
std::array<cv::Vec3d, 3> x_copy;
std::array<cv::Vec3d, 3> X_copy;
};
}
#endif // P3P_H