Skip to content

Commit

Permalink
Disambiguate cv::format
Browse files Browse the repository at this point in the history
Otherwise, this test does not compile with C++20, which includes
std::format.
  • Loading branch information
vrabaud committed May 23, 2024
1 parent f2c48e5 commit 5002077
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/calib3d/test/test_homography.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 5002077

Please sign in to comment.