2011-09-13 19:19:40 +08:00
|
|
|
#ifndef __OPENCV_PERF_PRECOMP_HPP__
|
|
|
|
#define __OPENCV_PERF_PRECOMP_HPP__
|
|
|
|
|
2013-03-13 20:22:44 +08:00
|
|
|
#include "opencv2/ts.hpp"
|
|
|
|
#include "opencv2/stitching.hpp"
|
2011-09-13 19:19:40 +08:00
|
|
|
|
2017-06-21 19:33:09 +08:00
|
|
|
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
|
|
|
|
|
2011-09-13 19:19:40 +08:00
|
|
|
#endif
|