Path: blob/master/modules/features2d/test/test_detectors_invariance.cpp
16339 views
// This file is part of OpenCV project.1// It is subject to the license terms in the LICENSE file found in the top-level directory2// of this distribution and at http://opencv.org/license.html34#include "test_precomp.hpp"5#include "test_invariance_utils.hpp"67#include "test_detectors_invariance.impl.hpp"89namespace opencv_test { namespace {1011const static std::string IMAGE_TSUKUBA = "features2d/tsukuba.png";12const static std::string IMAGE_BIKES = "detectors_descriptors_evaluation/images_datasets/bikes/img1.png";13#define Value(...) Values(make_tuple(__VA_ARGS__))1415/*16* Detector's rotation invariance check17*/1819INSTANTIATE_TEST_CASE_P(BRISK, DetectorRotationInvariance,20Value(IMAGE_TSUKUBA, BRISK::create(), 0.45f, 0.76f));2122INSTANTIATE_TEST_CASE_P(ORB, DetectorRotationInvariance,23Value(IMAGE_TSUKUBA, ORB::create(), 0.5f, 0.76f));2425INSTANTIATE_TEST_CASE_P(AKAZE, DetectorRotationInvariance,26Value(IMAGE_TSUKUBA, AKAZE::create(), 0.5f, 0.71f));2728INSTANTIATE_TEST_CASE_P(AKAZE_DESCRIPTOR_KAZE, DetectorRotationInvariance,29Value(IMAGE_TSUKUBA, AKAZE::create(AKAZE::DESCRIPTOR_KAZE), 0.5f, 0.71f));3031/*32* Detector's scale invariance check33*/3435INSTANTIATE_TEST_CASE_P(BRISK, DetectorScaleInvariance,36Value(IMAGE_BIKES, BRISK::create(), 0.08f, 0.49f));3738INSTANTIATE_TEST_CASE_P(ORB, DetectorScaleInvariance,39Value(IMAGE_BIKES, ORB::create(), 0.08f, 0.49f));4041INSTANTIATE_TEST_CASE_P(KAZE, DetectorScaleInvariance,42Value(IMAGE_BIKES, KAZE::create(), 0.08f, 0.49f));4344INSTANTIATE_TEST_CASE_P(AKAZE, DetectorScaleInvariance,45Value(IMAGE_BIKES, AKAZE::create(), 0.08f, 0.49f));4647INSTANTIATE_TEST_CASE_P(AKAZE_DESCRIPTOR_KAZE, DetectorScaleInvariance,48Value(IMAGE_BIKES, AKAZE::create(AKAZE::DESCRIPTOR_KAZE), 0.08f, 0.49f));4950}} // namespace515253