Commit 6200f388 authored by Vladislav Vinogradov's avatar Vladislav Vinogradov

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

parent af607281
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment