Subversion Repositories seema-scanner

Rev

Rev 50 | Rev 80 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 50 Rev 68
Line 91... Line 91...
91
    SMCalibrationParameters cal;
91
    SMCalibrationParameters cal;
92
    cal.frameWidth = calibrationData[0].frame0.cols;
92
    cal.frameWidth = calibrationData[0].frame0.cols;
93
    cal.frameHeight = calibrationData[0].frame0.rows;
93
    cal.frameHeight = calibrationData[0].frame0.rows;
94
    cv::Size frameSize(cal.frameWidth, cal.frameHeight);
94
    cv::Size frameSize(cal.frameWidth, cal.frameHeight);
95
 
95
 
-
 
96
    // determine only k1, k2 for lens distortion
96
    int flags = 0; //cv::CALIB_FIX_K3;
97
    int flags = cv::CALIB_FIX_K3;
97
 
-
 
98
    // Note: several of the output arguments below must be cv::Mat, otherwise segfault
98
    // Note: several of the output arguments below must be cv::Mat, otherwise segfault
99
    std::vector<cv::Mat> cam_rvecs0, cam_tvecs0;
99
    std::vector<cv::Mat> cam_rvecs0, cam_tvecs0;
100
    cal.cam0_error = cv::calibrateCamera(Q, qc0, frameSize, cal.K0, cal.k0, cam_rvecs0, cam_tvecs0, flags);
100
    cal.cam0_error = cv::calibrateCamera(Q, qc0, frameSize, cal.K0, cal.k0, cam_rvecs0, cam_tvecs0, flags);
101
 
101
 
102
    std::vector<cv::Mat> cam_rvecs1, cam_tvecs1;
102
    std::vector<cv::Mat> cam_rvecs1, cam_tvecs1;