forked from udarrr/opencv4nodejs-prebuilt-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdescriptorMatching.h
43 lines (37 loc) · 1.47 KB
/
descriptorMatching.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "macros.h"
#include <opencv2/core.hpp>
#include <opencv2/features2d.hpp>
#include "Mat.h"
#include "KeyPoint.h"
#include "DescriptorMatch.h"
#include "CatchCvExceptionWorker.h"
#ifndef __FF_DESCRIPTORMATCHING_H__
#define __FF_DESCRIPTORMATCHING_H__
class DescriptorMatching : public Nan::ObjectWrap {
public:
static NAN_MODULE_INIT(Init);
static NAN_METHOD(MatchFlannBased);
static NAN_METHOD(MatchBruteForce);
static NAN_METHOD(MatchBruteForceL1);
static NAN_METHOD(MatchBruteForceHamming);
static NAN_METHOD(MatchBruteForceHammingLut);
static NAN_METHOD(MatchBruteForceSL2);
static NAN_METHOD(MatchFlannBasedAsync);
static NAN_METHOD(MatchBruteForceAsync);
static NAN_METHOD(MatchBruteForceL1Async);
static NAN_METHOD(MatchBruteForceHammingAsync);
static NAN_METHOD(MatchBruteForceHammingLutAsync);
static NAN_METHOD(MatchBruteForceSL2Async);
#if CV_VERSION_GREATER_EQUAL(4, 0, 0)
static void match(Nan::NAN_METHOD_ARGS_TYPE info, cv::DescriptorMatcher::MatcherType matcherType);
static void matchAsync(Nan::NAN_METHOD_ARGS_TYPE info, cv::DescriptorMatcher::MatcherType matcherType);
#elif CV_VERSION_GREATER_EQUAL(3, 2, 0)
static void match(Nan::NAN_METHOD_ARGS_TYPE info, int matcherType);
static void matchAsync(Nan::NAN_METHOD_ARGS_TYPE info, int matcherType);
#else
static void match(Nan::NAN_METHOD_ARGS_TYPE info, std::string matcherType);
static void matchAsync(Nan::NAN_METHOD_ARGS_TYPE info, std::string matcherType);
#endif
struct MatchWorker;
};
#endif