Fix binary compatibility of opencv_gpu
This commit is contained in:

committed by
Andrey Kamaev

parent
ed51162568
commit
e5437e5486
@@ -570,7 +570,8 @@ PARAM_TEST_CASE(BruteForceMatcher, cv::gpu::DeviceInfo, NormCode, DescriptorSize
|
||||
|
||||
TEST_P(BruteForceMatcher, Match_Single)
|
||||
{
|
||||
cv::gpu::BFMatcher_GPU matcher(normCode);
|
||||
cv::gpu::BruteForceMatcher_GPU_base matcher(
|
||||
cv::gpu::BruteForceMatcher_GPU_base::DistType((normCode -2) / 2));
|
||||
|
||||
cv::gpu::GpuMat mask;
|
||||
if (useMask)
|
||||
@@ -597,7 +598,8 @@ TEST_P(BruteForceMatcher, Match_Single)
|
||||
|
||||
TEST_P(BruteForceMatcher, Match_Collection)
|
||||
{
|
||||
cv::gpu::BFMatcher_GPU matcher(normCode);
|
||||
cv::gpu::BruteForceMatcher_GPU_base matcher(
|
||||
cv::gpu::BruteForceMatcher_GPU_base::DistType((normCode -2) / 2));
|
||||
|
||||
cv::gpu::GpuMat d_train(train);
|
||||
|
||||
@@ -651,7 +653,8 @@ TEST_P(BruteForceMatcher, Match_Collection)
|
||||
|
||||
TEST_P(BruteForceMatcher, KnnMatch_2_Single)
|
||||
{
|
||||
cv::gpu::BFMatcher_GPU matcher(normCode);
|
||||
cv::gpu::BruteForceMatcher_GPU_base matcher(
|
||||
cv::gpu::BruteForceMatcher_GPU_base::DistType((normCode -2) / 2));
|
||||
|
||||
const int knn = 2;
|
||||
|
||||
@@ -690,7 +693,8 @@ TEST_P(BruteForceMatcher, KnnMatch_2_Single)
|
||||
|
||||
TEST_P(BruteForceMatcher, KnnMatch_3_Single)
|
||||
{
|
||||
cv::gpu::BFMatcher_GPU matcher(normCode);
|
||||
cv::gpu::BruteForceMatcher_GPU_base matcher(
|
||||
cv::gpu::BruteForceMatcher_GPU_base::DistType((normCode -2) / 2));
|
||||
|
||||
const int knn = 3;
|
||||
|
||||
@@ -729,7 +733,8 @@ TEST_P(BruteForceMatcher, KnnMatch_3_Single)
|
||||
|
||||
TEST_P(BruteForceMatcher, KnnMatch_2_Collection)
|
||||
{
|
||||
cv::gpu::BFMatcher_GPU matcher(normCode);
|
||||
cv::gpu::BruteForceMatcher_GPU_base matcher(
|
||||
cv::gpu::BruteForceMatcher_GPU_base::DistType((normCode -2) / 2));
|
||||
|
||||
const int knn = 2;
|
||||
|
||||
@@ -791,7 +796,8 @@ TEST_P(BruteForceMatcher, KnnMatch_2_Collection)
|
||||
|
||||
TEST_P(BruteForceMatcher, KnnMatch_3_Collection)
|
||||
{
|
||||
cv::gpu::BFMatcher_GPU matcher(normCode);
|
||||
cv::gpu::BruteForceMatcher_GPU_base matcher(
|
||||
cv::gpu::BruteForceMatcher_GPU_base::DistType((normCode -2) / 2));
|
||||
|
||||
const int knn = 3;
|
||||
|
||||
@@ -853,7 +859,8 @@ TEST_P(BruteForceMatcher, KnnMatch_3_Collection)
|
||||
|
||||
TEST_P(BruteForceMatcher, RadiusMatch_Single)
|
||||
{
|
||||
cv::gpu::BFMatcher_GPU matcher(normCode);
|
||||
cv::gpu::BruteForceMatcher_GPU_base matcher(
|
||||
cv::gpu::BruteForceMatcher_GPU_base::DistType((normCode -2) / 2));
|
||||
|
||||
const float radius = 1.f / countFactor;
|
||||
|
||||
@@ -902,7 +909,8 @@ TEST_P(BruteForceMatcher, RadiusMatch_Single)
|
||||
|
||||
TEST_P(BruteForceMatcher, RadiusMatch_Collection)
|
||||
{
|
||||
cv::gpu::BFMatcher_GPU matcher(normCode);
|
||||
cv::gpu::BruteForceMatcher_GPU_base matcher(
|
||||
cv::gpu::BruteForceMatcher_GPU_base::DistType((normCode -2) / 2));
|
||||
|
||||
const int n = 3;
|
||||
const float radius = 1.f / countFactor * n;
|
||||
|
Reference in New Issue
Block a user