mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 11:10:21 +08:00
fixed bug in BruteForceMatcher_GPU::knnMatch (allDist buffer reuse)
This commit is contained in:
parent
af6072814c
commit
6200f388dd
@ -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…
Reference in New Issue
Block a user