-
Notifications
You must be signed in to change notification settings - Fork 6
/
FlannBasedMatcher.ts
53 lines (41 loc) · 2.01 KB
/
FlannBasedMatcher.ts
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
44
45
46
47
48
49
50
51
52
import { bool, FileNode, FileStorage, InputArrayOfArrays, Ptr } from './_types'
/**
* This matcher trains [cv::flann::Index](#d1/db2/classcv_1_1flann_1_1Index}) on a train descriptor
* collection and calls its nearest search methods to find the best matches. So, this matcher may be
* faster when matching a large train collection than the brute force matcher.
* [FlannBasedMatcher](#dc/de2/classcv_1_1FlannBasedMatcher}) does not support masking permissible
* matches of descriptor sets because [flann::Index](#d1/db2/classcv_1_1flann_1_1Index}) does not
* support this. :
*
* Source:
* [opencv2/features2d.hpp](https://github.com/opencv/opencv/tree/master/modules/core/include/opencv2/features2d.hpp#L1187).
*
*/
export declare class FlannBasedMatcher {
public constructor(indexParams?: Ptr, searchParams?: Ptr)
/**
* If the collection is not empty, the new descriptors are added to existing train descriptors.
*
* @param descriptors Descriptors to add. Each descriptors[i] is a set of descriptors from the same
* train image.
*/
public add(descriptors: InputArrayOfArrays): InputArrayOfArrays
public clear(): void
/**
* @param emptyTrainData If emptyTrainData is false, the method creates a deep copy of the object,
* that is, copies both parameters and train data. If emptyTrainData is true, the method creates an
* object copy with the current parameters but with empty train data.
*/
public clone(emptyTrainData?: bool): Ptr
public isMaskSupported(): bool
public read(fn: FileNode): FileNode
/**
* Trains a descriptor matcher (for example, the flann index). In all methods to match, the method
* [train()] is run every time before matching. Some descriptor matchers (for example,
* BruteForceMatcher) have an empty implementation of this method. Other matchers really train their
* inner structures (for example, [FlannBasedMatcher] trains [flann::Index] ).
*/
public train(): void
public write(fs: FileStorage): FileStorage
public static create(): Ptr
}