2018-09-07 21:31:01 +08:00
|
|
|
// 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
|
2012-07-12 21:57:17 +08:00
|
|
|
|
|
|
|
#include "test_precomp.hpp"
|
|
|
|
|
2017-11-05 21:48:40 +08:00
|
|
|
namespace opencv_test { namespace {
|
2012-07-12 21:57:17 +08:00
|
|
|
const string FEATURES2D_DIR = "features2d";
|
|
|
|
const string IMAGE_FILENAME = "tsukuba.png";
|
|
|
|
const string DETECTOR_DIR = FEATURES2D_DIR + "/feature_detectors";
|
2018-09-07 21:31:01 +08:00
|
|
|
}} // namespace
|
2012-07-12 21:57:17 +08:00
|
|
|
|
2018-09-07 21:31:01 +08:00
|
|
|
#include "test_detectors_regression.impl.hpp"
|
2012-07-12 21:57:17 +08:00
|
|
|
|
2018-09-07 21:31:01 +08:00
|
|
|
namespace opencv_test { namespace {
|
2012-07-12 21:57:17 +08:00
|
|
|
|
|
|
|
/****************************************************************************************\
|
|
|
|
* Tests registrations *
|
|
|
|
\****************************************************************************************/
|
|
|
|
|
2020-04-21 14:58:21 +08:00
|
|
|
TEST( Features2d_Detector_SIFT, regression )
|
|
|
|
{
|
|
|
|
CV_FeatureDetectorTest test( "detector-sift", SIFT::create() );
|
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
2012-08-23 20:52:01 +08:00
|
|
|
TEST( Features2d_Detector_BRISK, regression )
|
|
|
|
{
|
2014-10-16 02:49:17 +08:00
|
|
|
CV_FeatureDetectorTest test( "detector-brisk", BRISK::create() );
|
2012-08-23 20:52:01 +08:00
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
2012-07-12 21:57:17 +08:00
|
|
|
TEST( Features2d_Detector_FAST, regression )
|
|
|
|
{
|
2014-10-16 02:49:17 +08:00
|
|
|
CV_FeatureDetectorTest test( "detector-fast", FastFeatureDetector::create() );
|
2012-07-12 21:57:17 +08:00
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
2015-04-11 17:09:13 +08:00
|
|
|
TEST( Features2d_Detector_AGAST, regression )
|
|
|
|
{
|
|
|
|
CV_FeatureDetectorTest test( "detector-agast", AgastFeatureDetector::create() );
|
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
2012-07-12 21:57:17 +08:00
|
|
|
TEST( Features2d_Detector_GFTT, regression )
|
|
|
|
{
|
2014-10-16 02:49:17 +08:00
|
|
|
CV_FeatureDetectorTest test( "detector-gftt", GFTTDetector::create() );
|
2012-07-12 21:57:17 +08:00
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST( Features2d_Detector_Harris, regression )
|
|
|
|
{
|
2014-10-19 00:44:26 +08:00
|
|
|
Ptr<GFTTDetector> gftt = GFTTDetector::create();
|
|
|
|
gftt->setHarrisDetector(true);
|
2014-10-17 18:22:02 +08:00
|
|
|
CV_FeatureDetectorTest test( "detector-harris", gftt);
|
2012-07-12 21:57:17 +08:00
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST( Features2d_Detector_MSER, DISABLED_regression )
|
|
|
|
{
|
2014-10-16 02:49:17 +08:00
|
|
|
CV_FeatureDetectorTest test( "detector-mser", MSER::create() );
|
2012-07-12 21:57:17 +08:00
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST( Features2d_Detector_ORB, regression )
|
|
|
|
{
|
2014-10-16 02:49:17 +08:00
|
|
|
CV_FeatureDetectorTest test( "detector-orb", ORB::create() );
|
2012-07-12 21:57:17 +08:00
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
2014-07-30 22:02:08 +08:00
|
|
|
TEST( Features2d_Detector_KAZE, regression )
|
|
|
|
{
|
2014-10-16 02:49:17 +08:00
|
|
|
CV_FeatureDetectorTest test( "detector-kaze", KAZE::create() );
|
2014-07-30 22:02:08 +08:00
|
|
|
test.safe_run();
|
|
|
|
}
|
|
|
|
|
|
|
|
TEST( Features2d_Detector_AKAZE, regression )
|
|
|
|
{
|
2014-10-16 02:49:17 +08:00
|
|
|
CV_FeatureDetectorTest test( "detector-akaze", AKAZE::create() );
|
2014-07-30 22:02:08 +08:00
|
|
|
test.safe_run();
|
|
|
|
}
|
2016-12-12 17:25:57 +08:00
|
|
|
|
2017-06-21 19:33:09 +08:00
|
|
|
TEST( Features2d_Detector_AKAZE_DESCRIPTOR_KAZE, regression )
|
|
|
|
{
|
|
|
|
CV_FeatureDetectorTest test( "detector-akaze-with-kaze-desc", AKAZE::create(AKAZE::DESCRIPTOR_KAZE) );
|
|
|
|
test.safe_run();
|
|
|
|
}
|
2017-11-05 21:48:40 +08:00
|
|
|
|
|
|
|
}} // namespace
|