Path: blob/master/modules/features2d/test/test_detectors_regression.cpp
16344 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"56namespace opencv_test { namespace {7const string FEATURES2D_DIR = "features2d";8const string IMAGE_FILENAME = "tsukuba.png";9const string DETECTOR_DIR = FEATURES2D_DIR + "/feature_detectors";10}} // namespace1112#include "test_detectors_regression.impl.hpp"1314namespace opencv_test { namespace {1516/****************************************************************************************\17* Tests registrations *18\****************************************************************************************/1920TEST( Features2d_Detector_BRISK, regression )21{22CV_FeatureDetectorTest test( "detector-brisk", BRISK::create() );23test.safe_run();24}2526TEST( Features2d_Detector_FAST, regression )27{28CV_FeatureDetectorTest test( "detector-fast", FastFeatureDetector::create() );29test.safe_run();30}3132TEST( Features2d_Detector_AGAST, regression )33{34CV_FeatureDetectorTest test( "detector-agast", AgastFeatureDetector::create() );35test.safe_run();36}3738TEST( Features2d_Detector_GFTT, regression )39{40CV_FeatureDetectorTest test( "detector-gftt", GFTTDetector::create() );41test.safe_run();42}4344TEST( Features2d_Detector_Harris, regression )45{46Ptr<GFTTDetector> gftt = GFTTDetector::create();47gftt->setHarrisDetector(true);48CV_FeatureDetectorTest test( "detector-harris", gftt);49test.safe_run();50}5152TEST( Features2d_Detector_MSER, DISABLED_regression )53{54CV_FeatureDetectorTest test( "detector-mser", MSER::create() );55test.safe_run();56}5758TEST( Features2d_Detector_ORB, regression )59{60CV_FeatureDetectorTest test( "detector-orb", ORB::create() );61test.safe_run();62}6364TEST( Features2d_Detector_KAZE, regression )65{66CV_FeatureDetectorTest test( "detector-kaze", KAZE::create() );67test.safe_run();68}6970TEST( Features2d_Detector_AKAZE, regression )71{72CV_FeatureDetectorTest test( "detector-akaze", AKAZE::create() );73test.safe_run();74}7576TEST( Features2d_Detector_AKAZE_DESCRIPTOR_KAZE, regression )77{78CV_FeatureDetectorTest test( "detector-akaze-with-kaze-desc", AKAZE::create(AKAZE::DESCRIPTOR_KAZE) );79test.safe_run();80}8182}} // namespace838485