GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — code/Chapter4_StructureFromMotion/Triangulation.h at master · dzungtri/code Expand file tree/ Copy pathTriangulation.hMore file actions executable file ·52 lines (46 loc) · 1.95 KB / Copy pathTriangulation.hFile metadata and controlsexecutable file ·52 lines (46 loc) · 1.95 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 /***************************************************************************** * ExploringSfMWithOpenCV ****************************************************************************** * by Roy Shilkrot, 5th Dec 2012 * http://www.morethantechnical.com/ ****************************************************************************** * Ch4 of the book "Mastering OpenCV with Practical Computer Vision Projects" * Copyright Packt Publishing 2012. * http://www.packtpub.com/cool-projects-with-opencv/book *****************************************************************************/ #pragma once #include <opencv2/core/core.hpp> #include <opencv2/features2d/features2d.hpp> #include <opencv2/calib3d/calib3d.hpp> #ifdef __SFM__DEBUG__ #include <opencv2/highgui/highgui.hpp> #include <opencv2/imgproc/imgproc.hpp> #endif #include <vector> #include "Common.h" /** From "Triangulation", Hartley, R.I. and Sturm, P., Computer vision and image understanding, 1997 */ cv::Mat_<double> LinearLSTriangulation(cv::Point3d u, //homogenous image point (u,v,1) cv::Matx34d P, //camera 1 matrix cv::Point3d u1, //homogenous image point in 2nd camera cv::Matx34d P1 //camera 2 matrix ); #define EPSILON 0.0001 /** From "Triangulation", Hartley, R.I. and Sturm, P., Computer vision and image understanding, 1997 */ cv::Mat_<double> IterativeLinearLSTriangulation(cv::Point3d u, //homogenous image point (u,v,1) cv::Matx34d P, //camera 1 matrix cv::Point3d u1, //homogenous image point in 2nd camera cv::Matx34d P1 //camera 2 matrix ); double TriangulatePoints(const std::vector<cv::KeyPoint>& pt_set1, const std::vector<cv::KeyPoint>& pt_set2, const cv::Mat& K, const cv::Mat& Kinv, const cv::Mat& distcoeff, const cv::Matx34d& P, const cv::Matx34d& P1, std::vector<CloudPoint>& pointcloud, std::vector<cv::KeyPoint>& correspImg1Pt); |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |