Merge pull request #25627 from vrabaud:tiff

Disambiguate cv::format
This commit is contained in:
Alexander Smorkalov 2024-05-23 12:51:16 +03:00 committed by GitHub
commit 9f1559595b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -718,12 +718,12 @@ TEST(Calib3d_Homography, not_normalized)
{
Mat h = findHomography(p1, p2, method);
for (auto it = h.begin<double>(); it != h.end<double>(); ++it) {
ASSERT_FALSE(cvIsNaN(*it)) << format("method %d\nResult:\n", method) << h;
ASSERT_FALSE(cvIsNaN(*it)) << cv::format("method %d\nResult:\n", method) << h;
}
if (h.at<double>(0, 0) * ref.at<double>(0, 0) < 0) {
h *= -1;
}
ASSERT_LE(cv::norm(h, ref, NORM_INF), 1e-8) << format("method %d\nResult:\n", method) << h;
ASSERT_LE(cv::norm(h, ref, NORM_INF), 1e-8) << cv::format("method %d\nResult:\n", method) << h;
}
}