mirror of
https://github.com/opencv/opencv.git
synced 2024-12-16 02:19:12 +08:00
4a297a2443
- removed tr1 usage (dropped in C++17) - moved includes of vector/map/iostream/limits into ts.hpp - require opencv_test + anonymous namespace (added compile check) - fixed norm() usage (must be from cvtest::norm for checks) and other conflict functions - added missing license headers
25 lines
563 B
C++
25 lines
563 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>();
|
|
else if (name == "surf")
|
|
return makePtr<detail::SurfFeaturesFinder>();
|
|
else if (name == "akaze")
|
|
return makePtr<detail::AKAZEFeaturesFinder>();
|
|
else
|
|
return Ptr<detail::FeaturesFinder>();
|
|
}
|
|
|
|
} // namespace cv
|
|
|
|
#endif
|