1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 23:33:05 +04:00

fixed BruteForceMatcher_GPU (fails if input data is empty)

updated BruteForceMatcher_GPU test
This commit is contained in:
Vladislav Vinogradov
2011-01-26 15:58:47 +00:00
parent cecfde309c
commit eda8416358
3 changed files with 485 additions and 116 deletions
+1 -1
View File
@@ -1301,7 +1301,7 @@ namespace cv
const GpuMat& maskCollection);
// Download trainIdx, imgIdx and distance to CPU vector with DMatch
static void matchDownload(const GpuMat& trainIdx, GpuMat& imgIdx, const GpuMat& distance,
static void matchDownload(const GpuMat& trainIdx, const GpuMat& imgIdx, const GpuMat& distance,
std::vector<DMatch>& matches);
// Find one best match from train collection for each query descriptor.