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

View File

@@ -38,6 +38,9 @@ int main(int argc, char* argv[])
GpuMat descriptors1GPU, descriptors2GPU;
surf(img1, GpuMat(), keypoints1GPU, descriptors1GPU);
surf(img2, GpuMat(), keypoints2GPU, descriptors2GPU);
cout << "FOUND " << keypoints1GPU.cols << " keypoints on first image" << endl;
cout << "FOUND " << keypoints2GPU.cols << " keypoints on second image" << endl;
// matching descriptors
BruteForceMatcher_GPU< L2<float> > matcher;
@@ -57,6 +60,8 @@ int main(int argc, char* argv[])
// drawing the results
Mat img_matches;
drawMatches(img1, keypoints1, img2, keypoints2, matches, img_matches);
namedWindow("matches", 0);
imshow("matches", img_matches);
waitKey(0);