mirror of
https://github.com/opencv/opencv.git
synced 2024-12-03 00:10:21 +08:00
27 lines
641 B
C++
27 lines
641 B
C++
#ifndef __OPENCV_PERF_PRECOMP_HPP__
|
|
#define __OPENCV_PERF_PRECOMP_HPP__
|
|
|
|
#include "opencv2/ts.hpp"
|
|
#include "opencv2/stitching.hpp"
|
|
|
|
namespace cv
|
|
{
|
|
|
|
static inline Ptr<detail::FeaturesFinder> getFeatureFinder(const std::string& name)
|
|
{
|
|
if (name == "orb")
|
|
return makePtr<detail::OrbFeaturesFinder>();
|
|
#if defined(HAVE_OPENCV_XFEATURES2D) && defined(OPENCV_ENABLE_NONFREE)
|
|
else if (name == "surf")
|
|
return makePtr<detail::SurfFeaturesFinder>();
|
|
#endif
|
|
else if (name == "akaze")
|
|
return makePtr<detail::AKAZEFeaturesFinder>();
|
|
else
|
|
return Ptr<detail::FeaturesFinder>();
|
|
}
|
|
|
|
} // namespace cv
|
|
|
|
#endif
|