718c41634f
1.项目后端整体迁移至PaddleOCR-NCNN算法,已通过基本的兼容性测试 2.工程改为使用CMake组织,后续为了更好地兼容第三方库,不再提供QMake工程 3.重整权利声明文件,重整代码工程,确保最小化侵权风险 Log: 切换后端至PaddleOCR-NCNN,切换工程为CMake Change-Id: I4d5d2c5d37505a4a24b389b1a4c5d12f17bfa38c
49 lines
2.0 KiB
C++
49 lines
2.0 KiB
C++
// This file is part of OpenCV project.
|
|
// It is subject to the license terms in the LICENSE file found in the top-level directory
|
|
// of this distribution and at http://opencv.org/license.html
|
|
|
|
#include "test_precomp.hpp"
|
|
#include "test_invariance_utils.hpp"
|
|
|
|
#include "test_descriptors_invariance.impl.hpp"
|
|
|
|
namespace opencv_test { namespace {
|
|
|
|
const static std::string IMAGE_TSUKUBA = "features2d/tsukuba.png";
|
|
const static std::string IMAGE_BIKES = "detectors_descriptors_evaluation/images_datasets/bikes/img1.png";
|
|
#define Value(...) Values(make_tuple(__VA_ARGS__))
|
|
|
|
/*
|
|
* Descriptors's rotation invariance check
|
|
*/
|
|
|
|
INSTANTIATE_TEST_CASE_P(SIFT, DescriptorRotationInvariance,
|
|
Value(IMAGE_TSUKUBA, SIFT::create(), SIFT::create(), 0.98f));
|
|
|
|
INSTANTIATE_TEST_CASE_P(BRISK, DescriptorRotationInvariance,
|
|
Value(IMAGE_TSUKUBA, BRISK::create(), BRISK::create(), 0.99f));
|
|
|
|
INSTANTIATE_TEST_CASE_P(ORB, DescriptorRotationInvariance,
|
|
Value(IMAGE_TSUKUBA, ORB::create(), ORB::create(), 0.99f));
|
|
|
|
INSTANTIATE_TEST_CASE_P(AKAZE, DescriptorRotationInvariance,
|
|
Value(IMAGE_TSUKUBA, AKAZE::create(), AKAZE::create(), 0.99f));
|
|
|
|
INSTANTIATE_TEST_CASE_P(AKAZE_DESCRIPTOR_KAZE, DescriptorRotationInvariance,
|
|
Value(IMAGE_TSUKUBA, AKAZE::create(AKAZE::DESCRIPTOR_KAZE), AKAZE::create(AKAZE::DESCRIPTOR_KAZE), 0.99f));
|
|
|
|
/*
|
|
* Descriptor's scale invariance check
|
|
*/
|
|
|
|
INSTANTIATE_TEST_CASE_P(SIFT, DescriptorScaleInvariance,
|
|
Value(IMAGE_BIKES, SIFT::create(0, 3, 0.09), SIFT::create(0, 3, 0.09), 0.78f));
|
|
|
|
INSTANTIATE_TEST_CASE_P(AKAZE, DescriptorScaleInvariance,
|
|
Value(IMAGE_BIKES, AKAZE::create(), AKAZE::create(), 0.6f));
|
|
|
|
INSTANTIATE_TEST_CASE_P(AKAZE_DESCRIPTOR_KAZE, DescriptorScaleInvariance,
|
|
Value(IMAGE_BIKES, AKAZE::create(AKAZE::DESCRIPTOR_KAZE), AKAZE::create(AKAZE::DESCRIPTOR_KAZE), 0.55f));
|
|
|
|
}} // namespace
|