This repository was archived by the owner on Oct 18, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +18
-0
lines changed
test/tests/modules/features2d Expand file tree Collapse file tree 3 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ export * from './typings/FisherFaceRecognizer.d';
23
23
export * from './typings/KeyPointDetector.d' ;
24
24
export * from './typings/FeatureDetector.d' ;
25
25
export * from './typings/AGASTDetector.d' ;
26
+ export * from './typings/BFMatcher.d' ;
26
27
export * from './typings/AKAZEDetector.d' ;
27
28
export * from './typings/BRISKDetector.d' ;
28
29
export * from './typings/DescriptorMatch.d' ;
Original file line number Diff line number Diff line change
1
+ import { Mat } from "./Mat" ;
2
+ import { DescriptorMatch } from "./DescriptorMatch" ;
3
+
4
+ export class BFMatcher {
5
+ constructor ( normType : number , crossCheck ?: boolean ) ;
6
+ constructor ( params : { normType : number , crossCheck ?: boolean } ) ;
7
+ match ( descriptors1 : Mat , descriptors2 : Mat ) : DescriptorMatch [ ] ;
8
+ matchAsync ( descriptors1 : Mat , descriptors2 : Mat ) : Promise < DescriptorMatch [ ] > ;
9
+ knnMatch ( descriptors1 : Mat , descriptors2 : Mat , k : number ) : Array < [ DescriptorMatch ] | [ ] > ;
10
+ knnMatchAsync ( descriptors1 : Mat , descriptors2 : Mat , k : number ) : Promise < Array < [ DescriptorMatch ] | [ ] > > ;
11
+ }
Original file line number Diff line number Diff line change @@ -31,6 +31,9 @@ module.exports = (getTestImg) => {
31
31
let BFMatcher ;
32
32
let crossCheck = true ;
33
33
34
+ let kazeKps ;
35
+ let kazeDesc ;
36
+
34
37
before ( ( ) => {
35
38
BFMatcher = new cv . BFMatcher ( cv . NORM_L2 , crossCheck ) ;
36
39
@@ -100,6 +103,9 @@ module.exports = (getTestImg) => {
100
103
let BFMatcher ;
101
104
let crossCheck = false ;
102
105
106
+ let kazeKps ;
107
+ let kazeDesc ;
108
+
103
109
before ( ( ) => {
104
110
BFMatcher = new cv . BFMatcher ( cv . NORM_L2 , crossCheck ) ;
105
111
You can’t perform that action at this time.
0 commit comments