minor fix
This commit is contained in:
parent
bf747e6deb
commit
f0356004bc
@ -158,12 +158,12 @@ INSTANTIATE_TEST_CASE_P(Features2D, SURF, DEVICES(cv::gpu::GLOBAL_ATOMICS));
|
|||||||
|
|
||||||
PARAM_TEST_CASE(BruteForceMatcher, cv::gpu::DeviceInfo, DistType, int)
|
PARAM_TEST_CASE(BruteForceMatcher, cv::gpu::DeviceInfo, DistType, int)
|
||||||
{
|
{
|
||||||
static const int queryDescCount = 300; // must be even number because we split train data in some cases in two
|
|
||||||
static const int countFactor = 4; // do not change it
|
|
||||||
|
|
||||||
cv::gpu::DeviceInfo devInfo;
|
cv::gpu::DeviceInfo devInfo;
|
||||||
cv::gpu::BruteForceMatcher_GPU_base::DistType distType;
|
cv::gpu::BruteForceMatcher_GPU_base::DistType distType;
|
||||||
int dim;
|
int dim;
|
||||||
|
|
||||||
|
int queryDescCount;
|
||||||
|
int countFactor;
|
||||||
|
|
||||||
cv::Mat query, train;
|
cv::Mat query, train;
|
||||||
|
|
||||||
@ -174,6 +174,9 @@ PARAM_TEST_CASE(BruteForceMatcher, cv::gpu::DeviceInfo, DistType, int)
|
|||||||
dim = GET_PARAM(2);
|
dim = GET_PARAM(2);
|
||||||
|
|
||||||
cv::gpu::setDevice(devInfo.deviceID());
|
cv::gpu::setDevice(devInfo.deviceID());
|
||||||
|
|
||||||
|
queryDescCount = 300; // must be even number because we split train data in some cases in two
|
||||||
|
countFactor = 4; // do not change it
|
||||||
|
|
||||||
cv::RNG& rng = cvtest::TS::ptr()->get_rng();
|
cv::RNG& rng = cvtest::TS::ptr()->get_rng();
|
||||||
|
|
||||||
@ -234,6 +237,7 @@ TEST_P(BruteForceMatcher, Match)
|
|||||||
ASSERT_EQ(0, badCount);
|
ASSERT_EQ(0, badCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
TEST_P(BruteForceMatcher, MatchAdd)
|
TEST_P(BruteForceMatcher, MatchAdd)
|
||||||
{
|
{
|
||||||
std::vector<cv::DMatch> matches;
|
std::vector<cv::DMatch> matches;
|
||||||
@ -490,6 +494,7 @@ TEST_P(BruteForceMatcher, RadiusMatch)
|
|||||||
|
|
||||||
const float radius = 1.f / countFactor;
|
const float radius = 1.f / countFactor;
|
||||||
|
|
||||||
|
|
||||||
std::vector< std::vector<cv::DMatch> > matches;
|
std::vector< std::vector<cv::DMatch> > matches;
|
||||||
|
|
||||||
ASSERT_NO_THROW(
|
ASSERT_NO_THROW(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user