mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
use new functions before all tegra:: calls
This commit is contained in:
@@ -148,7 +148,7 @@ void CpuMatcher::match(const ImageFeatures &features1, const ImageFeatures &feat
|
||||
CV_Assert(features2.descriptors.depth() == CV_8U || features2.descriptors.depth() == CV_32F);
|
||||
|
||||
#ifdef HAVE_TEGRA_OPTIMIZATION
|
||||
if (tegra::match2nearest(features1, features2, matches_info, match_conf_))
|
||||
if (cv::tegra::useTegra() && tegra::match2nearest(features1, features2, matches_info, match_conf_))
|
||||
return;
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user