Exemple #1
0
inline DistType rng_dist_init(const std::array<RealType, 2> &param)
{
    return DistType(param[0], param[1]);
}
            }
            else
            {
                cv::DMatch match = matches[i][0];
                if ((match.queryIdx != (int)i) || (match.trainIdx != (int)i * countFactor) || (match.imgIdx != 0))
                    badCount++;
            }
        }

        ASSERT_EQ(0, badCount);
    }

    INSTANTIATE_TEST_CASE_P(OCL_Features2D, BruteForceMatcher,
        testing::Combine(
        testing::Values(
            DistType(cv::ocl::BruteForceMatcher_OCL_base::L1Dist),
            DistType(cv::ocl::BruteForceMatcher_OCL_base::L2Dist)/*,
            DistType(cv::ocl::BruteForceMatcher_OCL_base::HammingDist)*/
        ),
        testing::Values(
            DescriptorSize(57),
            DescriptorSize(64),
            DescriptorSize(83),
            DescriptorSize(128),
            DescriptorSize(179),
            DescriptorSize(256),
            DescriptorSize(304))
        )
    );
} // namespace
#endif
Exemple #3
0
inline DistType rng_dist_init(const std::array<RealType, 0> &)
{
    return DistType();
}