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/Chapter3_MarkerlessAR/src/CameraCalibration.hpp at master · bigjun/code Expand file tree/ Copy pathCameraCalibration.hppMore file actions executable file ·51 lines (40 loc) · 1.49 KB / Copy pathCameraCalibration.hppFile metadata and controlsexecutable file ·51 lines (40 loc) · 1.49 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 /***************************************************************************** * Markerless AR desktop application. ****************************************************************************** * by Khvedchenia Ievgen, 5th Dec 2012 * http://computer-vision-talks.com ****************************************************************************** * Ch3 of the book "Mastering OpenCV with Practical Computer Vision Projects" * Copyright Packt Publishing 2012. * http://www.packtpub.com/cool-projects-with-opencv/book *****************************************************************************/ #ifndef Example_MarkerBasedAR_CameraCalibration_hpp #define Example_MarkerBasedAR_CameraCalibration_hpp //////////////////////////////////////////////////////////////////// // File includes: #include <opencv2/opencv.hpp> /** * A camera calibration class that stores intrinsic matrix and distortion coefficients. */ class CameraCalibration { public: CameraCalibration(); CameraCalibration(float fx, float fy, float cx, float cy); CameraCalibration(float fx, float fy, float cx, float cy, float distorsionCoeff[5]); void getMatrix34(float cparam[3][4]) const; const cv::Matx33f& getIntrinsic() const; const cv::Mat_<float>& getDistorsion() const; float& fx(); float& fy(); float& cx(); float& cy(); float fx() const; float fy() const; float cx() const; float cy() const; private: cv::Matx33f m_intrinsic; cv::Mat_<float> m_distortion; }; #endif |
| 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. |