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

This commit is contained in:
Vladislav Vinogradov 2011-05-04 08:53:43 +00:00
parent af6072814c
commit 6200f388dd

View File

@ -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);