1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 07:43:03 +04:00

fixed block size calculation in SURF_GPU (fasthessian_gpu and nonmaxonly_gpu kernels)

This commit is contained in:
Vladislav Vinogradov
2011-02-09 09:11:11 +00:00
parent d03b89f163
commit 924670d32c
4 changed files with 37 additions and 25 deletions
+2
View File
@@ -149,12 +149,14 @@ void CV_GPU_SURFTest::compareKeypointSets(const vector<KeyPoint>& validKeypoints
assert(minDist >= 0);
if (!isSimilarKeypoints(validKeypoints[v], calcKeypoints[nearestIdx]))
{
ts->printf(CvTS::LOG, "Bad keypoints accuracy.\n");
ts->set_failed_test_info( CvTS::FAIL_BAD_ACCURACY );
return;
}
if (norm(validDescriptors.row(v), calcDescriptors.row(nearestIdx), NORM_L2) > 1.0f)
{
ts->printf(CvTS::LOG, "Bad descriptors accuracy.\n");
ts->set_failed_test_info( CvTS::FAIL_BAD_ACCURACY );
return;
}