mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
563 B
24 lines
563 B
#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>(); |
|
else if (name == "surf") |
|
return makePtr<detail::SurfFeaturesFinder>(); |
|
else if (name == "akaze") |
|
return makePtr<detail::AKAZEFeaturesFinder>(); |
|
else |
|
return Ptr<detail::FeaturesFinder>(); |
|
} |
|
|
|
} // namespace cv |
|
|
|
#endif
|
|
|