$search
00001 00008 #ifndef INTRINSICS_HPP 00009 #define INTRINSICS_HPP 00010 00011 // Restrictive: CV_CALIB_FIX_K5 + CV_CALIB_FIX_K4 + CV_CALIB_FIX_K3 + CV_CALIB_FIX_K2 + CV_CALIB_FIX_PRINCIPAL_POINT + CV_CALIB_FIX_ASPECT_RATIO + CV_CALIB_ZERO_TANGENT_DIST 00012 // Rational: CV_CALIB_RATIONAL_MODEL 00013 // Conventional: 0 00014 #define INTRINSICS_FLAGS 0 // CV_CALIB_RATIONAL_MODEL 00015 00016 #define ABSOLUTE_MAX_FRAMES_TO_STORE 1000 00017 #define RADIAL_LENGTH 1000 00018 00019 //#include "cv_utils.hpp" 00020 #include "improc.hpp" 00021 #include "calibration.hpp" 00022 #include "tools.hpp" 00023 00024 using namespace std; 00025 using namespace cv; 00026 00028 void optimizeCalibrationSet(Size imSize, 00029 cv::vector< cv::vector<Point2f> >& candidatePatterns, 00030 cv::vector< cv::vector<Point2f> >& testPatterns, 00031 cv::vector<Point3f> row, 00032 cv::vector<int>& selectedTags, 00033 int selection = ENHANCED_MCM_OPTIMIZATION_CODE, 00034 int num = 10, 00035 bool debugMode = false); 00036 00038 double calculateERE(Size imSize, 00039 cv::vector<Point3f>& physicalPoints, 00040 cv::vector< cv::vector<Point2f> >& corners, 00041 const Mat& cameraMatrix, 00042 const Mat& distCoeffs, 00043 double errValues[] = NULL); 00044 00045 00046 #endif