From 76dc827648395d6fc6099769daaa3317f94acd77 Mon Sep 17 00:00:00 2001 From: Vladislav Vinogradov Date: Sat, 28 Apr 2012 07:41:21 +0000 Subject: [PATCH] added BruteForceMatcher_GPU (for legacy) --- modules/gpu/include/opencv2/gpu/gpu.hpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/modules/gpu/include/opencv2/gpu/gpu.hpp b/modules/gpu/include/opencv2/gpu/gpu.hpp index 5a95c5e..c2547d9 100644 --- a/modules/gpu/include/opencv2/gpu/gpu.hpp +++ b/modules/gpu/include/opencv2/gpu/gpu.hpp @@ -1371,6 +1371,30 @@ private: std::vector trainDescCollection; }; +template +class CV_EXPORTS BruteForceMatcher_GPU; + +template +class CV_EXPORTS BruteForceMatcher_GPU< L1 > : public BFMatcher_GPU +{ +public: + explicit BruteForceMatcher_GPU() : BFMatcher_GPU(NORM_L1) {} + explicit BruteForceMatcher_GPU(L1 /*d*/) : BFMatcher_GPU(NORM_L1) {} +}; +template +class CV_EXPORTS BruteForceMatcher_GPU< L2 > : public BFMatcher_GPU +{ +public: + explicit BruteForceMatcher_GPU() : BFMatcher_GPU(NORM_L2) {} + explicit BruteForceMatcher_GPU(L2 /*d*/) : BFMatcher_GPU(NORM_L2) {} +}; +template <> class CV_EXPORTS BruteForceMatcher_GPU< Hamming > : public BFMatcher_GPU +{ +public: + explicit BruteForceMatcher_GPU() : BFMatcher_GPU(NORM_HAMMING) {} + explicit BruteForceMatcher_GPU(Hamming /*d*/) : BFMatcher_GPU(NORM_HAMMING) {} +}; + ////////////////////////////////// CascadeClassifier_GPU ////////////////////////////////////////// // The cascade classifier class for object detection. class CV_EXPORTS CascadeClassifier_GPU -- 2.7.4