|
|
|
@ -239,4 +239,18 @@ void CV_ChessboardSubpixelTest::generateIntrinsicParams() |
|
|
|
|
|
|
|
|
|
TEST(Calib3d_ChessboardSubPixDetector, accuracy) { CV_ChessboardSubpixelTest test; test.safe_run(); } |
|
|
|
|
|
|
|
|
|
TEST(Calib3d_CornerSubPix, regression_7204) |
|
|
|
|
{ |
|
|
|
|
cv::Mat image(cv::Size(70, 38), CV_8UC1, cv::Scalar::all(0)); |
|
|
|
|
image(cv::Rect(65, 26, 5, 5)).setTo(cv::Scalar::all(255)); |
|
|
|
|
image(cv::Rect(55, 31, 8, 1)).setTo(cv::Scalar::all(255)); |
|
|
|
|
image(cv::Rect(56, 35, 14, 2)).setTo(cv::Scalar::all(255)); |
|
|
|
|
image(cv::Rect(66, 24, 4, 2)).setTo(cv::Scalar::all(255)); |
|
|
|
|
image.at<uchar>(24, 69) = 0; |
|
|
|
|
std::vector<cv::Point2f> corners; |
|
|
|
|
corners.push_back(cv::Point2f(65, 30)); |
|
|
|
|
cv::cornerSubPix(image, corners, cv::Size(3, 3), cv::Size(-1, -1), |
|
|
|
|
cv::TermCriteria(CV_TERMCRIT_EPS + CV_TERMCRIT_ITER, 30, 0.1)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* End of file. */ |
|
|
|
|