fixed bug in BruteForceMatcher_GPU::knnMatch (allDist buffer reuse)

pull/13383/head
Vladislav Vinogradov 14 years ago
parent af6072814c
commit 6200f388dd
  1. 1
      modules/gpu/src/brute_force_matcher.cpp

@ -414,6 +414,7 @@ void cv::gpu::BruteForceMatcher_GPU_base::knnMatch(const GpuMat& queryDescs, con
distance.create(nQuery, k, CV_32F);
ensureSizeIsEnough(nQuery, nTrain, CV_32FC1, allDist);
allDist.setTo(Scalar::all(numeric_limits<float>::max()));
match_caller_t func = match_callers[distType][queryDescs.depth()];
CV_Assert(func != 0);

Loading…
Cancel
Save