bug fix
This commit is contained in:
parent
d3c4e90760
commit
8f108b4e7e
@ -802,6 +802,11 @@ void cv::gpu::BruteForceMatcher_GPU_base::radiusMatchSingle(const GpuMat& query,
|
|||||||
ensureSizeIsEnough(nQuery, std::max((nTrain / 100), 10), CV_32FC1, distance);
|
ensureSizeIsEnough(nQuery, std::max((nTrain / 100), 10), CV_32FC1, distance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stream)
|
||||||
|
stream.enqueueMemSet(nMatches, Scalar::all(0));
|
||||||
|
else
|
||||||
|
nMatches.setTo(Scalar::all(0));
|
||||||
|
|
||||||
caller_t func = callers[distType][query.depth()];
|
caller_t func = callers[distType][query.depth()];
|
||||||
CV_Assert(func != 0);
|
CV_Assert(func != 0);
|
||||||
|
|
||||||
@ -927,6 +932,11 @@ void cv::gpu::BruteForceMatcher_GPU_base::radiusMatchCollection(const GpuMat& qu
|
|||||||
ensureSizeIsEnough(nQuery, std::max((nQuery / 100), 10), CV_32FC1, distance);
|
ensureSizeIsEnough(nQuery, std::max((nQuery / 100), 10), CV_32FC1, distance);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (stream)
|
||||||
|
stream.enqueueMemSet(nMatches, Scalar::all(0));
|
||||||
|
else
|
||||||
|
nMatches.setTo(Scalar::all(0));
|
||||||
|
|
||||||
caller_t func = callers[distType][query.depth()];
|
caller_t func = callers[distType][query.depth()];
|
||||||
CV_Assert(func != 0);
|
CV_Assert(func != 0);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user