Add BFMatcher_OCL class alias for BruteForceMatcher_OCL.

This adds a similar interface with pure-cpp and gpu versions.
pull/885/head
peng xiao 12 years ago
parent 3f93c3cc4e
commit d053f2165d
  1. 5
      modules/ocl/include/opencv2/ocl/ocl.hpp

@ -1245,6 +1245,11 @@ namespace cv
explicit BruteForceMatcher_OCL(Hamming /*d*/) : BruteForceMatcher_OCL_base(HammingDist) {} explicit BruteForceMatcher_OCL(Hamming /*d*/) : BruteForceMatcher_OCL_base(HammingDist) {}
}; };
class CV_EXPORTS BFMatcher_OCL : public BruteForceMatcher_OCL_base
{
public:
explicit BFMatcher_OCL(int norm = NORM_L2) : BruteForceMatcher_OCL_base(norm == NORM_L1 ? L1Dist : norm == NORM_L2 ? L2Dist : HammingDist) {}
};
/////////////////////////////// PyrLKOpticalFlow ///////////////////////////////////// /////////////////////////////// PyrLKOpticalFlow /////////////////////////////////////
class CV_EXPORTS PyrLKOpticalFlow class CV_EXPORTS PyrLKOpticalFlow
{ {

Loading…
Cancel
Save