opencv
xiechaoyi123
菜鸟学习
展开
-
opencv---单应性矩阵分解纯旋转运动相机内外参
#include<opencv2/opencv.hpp>#include <opencv2/core/hal/hal.hpp>using namespace cv;using namespace std;static inline bool decomposeCholesky(double *A, size_t astep, int m) { if (!hal::Cholesky64f(A, astep, m, 0, 0, 0)) return f.原创 2020-09-01 10:26:52 · 1600 阅读 · 0 评论 -
opencv-calibration
#include<opencv2/opencv.hpp>#include<fstream>void Calibration(const std::string &rootPath) { std::ifstream fin(rootPath + "calibdata.txt"); std::ofstream fout(rootPath + "caliberation_result.txt"); std::cout << "start.原创 2020-08-24 17:54:50 · 581 阅读 · 0 评论 -
opencv---sticher
#include<opencv2/opencv.hpp>void test(const std::string& rootPath){ std::vector<cv::Mat> images(size); for (int i = 0; i < size; ++i) { images[i] = cv::imread(rootPath + std::to_string(i + 1) + ".jpg"); } cv::M.原创 2020-08-24 17:52:55 · 394 阅读 · 0 评论