Subversion Repositories seema-scanner

Rev

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

Rev 42 Rev 48
Line 35... Line 35...
35
            cv::Mat gray;
35
            cv::Mat gray;
36
            cv::cvtColor(SMCalibrationSetI.frame0, gray, CV_RGB2GRAY);
36
            cv::cvtColor(SMCalibrationSetI.frame0, gray, CV_RGB2GRAY);
37
            cv::cornerSubPix(gray, qci0, cv::Size(5, 5), cv::Size(-1, -1),cv::TermCriteria(CV_TERMCRIT_EPS + CV_TERMCRIT_ITER, 20, 0.001));
37
            cv::cornerSubPix(gray, qci0, cv::Size(5, 5), cv::Size(-1, -1),cv::TermCriteria(CV_TERMCRIT_EPS + CV_TERMCRIT_ITER, 20, 0.001));
38
            // Draw colored chessboard
38
            // Draw colored chessboard
39
            SMCalibrationSetI.frame0Result = SMCalibrationSetI.frame0.clone();
39
            SMCalibrationSetI.frame0Result = SMCalibrationSetI.frame0.clone();
40
            cv::drawChessboardCorners(SMCalibrationSetI.frame0Result, checkerCount, qci0, success0);
40
            cvtools::drawChessboardCorners(SMCalibrationSetI.frame0Result, checkerCount, qci0, success0, 3);
41
        }
41
        }
42
 
42
 
43
        emit newFrameResult(i, 0, success0, SMCalibrationSetI.frame0Result);
43
        emit newFrameResult(i, 0, success0, SMCalibrationSetI.frame0Result);
44
 
44
 
45
        // Camera 1
45
        // Camera 1