ORB.java
8.33 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.features2d;
import java.lang.String;
// C++: class ORB
//javadoc: ORB
public class ORB extends Feature2D {
protected ORB(long addr) { super(addr); }
public static final int
kBytes = 32,
HARRIS_SCORE = 0,
FAST_SCORE = 1;
//
// C++: static Ptr_ORB create(int nfeatures = 500, float scaleFactor = 1.2f, int nlevels = 8, int edgeThreshold = 31, int firstLevel = 0, int WTA_K = 2, int scoreType = ORB::HARRIS_SCORE, int patchSize = 31, int fastThreshold = 20)
//
//javadoc: ORB::create(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize, fastThreshold)
public static ORB create(int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold)
{
ORB retVal = new ORB(create_0(nfeatures, scaleFactor, nlevels, edgeThreshold, firstLevel, WTA_K, scoreType, patchSize, fastThreshold));
return retVal;
}
//javadoc: ORB::create()
public static ORB create()
{
ORB retVal = new ORB(create_1());
return retVal;
}
//
// C++: String getDefaultName()
//
//javadoc: ORB::getDefaultName()
public String getDefaultName()
{
String retVal = getDefaultName_0(nativeObj);
return retVal;
}
//
// C++: double getScaleFactor()
//
//javadoc: ORB::getScaleFactor()
public double getScaleFactor()
{
double retVal = getScaleFactor_0(nativeObj);
return retVal;
}
//
// C++: int getEdgeThreshold()
//
//javadoc: ORB::getEdgeThreshold()
public int getEdgeThreshold()
{
int retVal = getEdgeThreshold_0(nativeObj);
return retVal;
}
//
// C++: int getFastThreshold()
//
//javadoc: ORB::getFastThreshold()
public int getFastThreshold()
{
int retVal = getFastThreshold_0(nativeObj);
return retVal;
}
//
// C++: int getFirstLevel()
//
//javadoc: ORB::getFirstLevel()
public int getFirstLevel()
{
int retVal = getFirstLevel_0(nativeObj);
return retVal;
}
//
// C++: int getMaxFeatures()
//
//javadoc: ORB::getMaxFeatures()
public int getMaxFeatures()
{
int retVal = getMaxFeatures_0(nativeObj);
return retVal;
}
//
// C++: int getNLevels()
//
//javadoc: ORB::getNLevels()
public int getNLevels()
{
int retVal = getNLevels_0(nativeObj);
return retVal;
}
//
// C++: int getPatchSize()
//
//javadoc: ORB::getPatchSize()
public int getPatchSize()
{
int retVal = getPatchSize_0(nativeObj);
return retVal;
}
//
// C++: int getScoreType()
//
//javadoc: ORB::getScoreType()
public int getScoreType()
{
int retVal = getScoreType_0(nativeObj);
return retVal;
}
//
// C++: int getWTA_K()
//
//javadoc: ORB::getWTA_K()
public int getWTA_K()
{
int retVal = getWTA_K_0(nativeObj);
return retVal;
}
//
// C++: void setEdgeThreshold(int edgeThreshold)
//
//javadoc: ORB::setEdgeThreshold(edgeThreshold)
public void setEdgeThreshold(int edgeThreshold)
{
setEdgeThreshold_0(nativeObj, edgeThreshold);
return;
}
//
// C++: void setFastThreshold(int fastThreshold)
//
//javadoc: ORB::setFastThreshold(fastThreshold)
public void setFastThreshold(int fastThreshold)
{
setFastThreshold_0(nativeObj, fastThreshold);
return;
}
//
// C++: void setFirstLevel(int firstLevel)
//
//javadoc: ORB::setFirstLevel(firstLevel)
public void setFirstLevel(int firstLevel)
{
setFirstLevel_0(nativeObj, firstLevel);
return;
}
//
// C++: void setMaxFeatures(int maxFeatures)
//
//javadoc: ORB::setMaxFeatures(maxFeatures)
public void setMaxFeatures(int maxFeatures)
{
setMaxFeatures_0(nativeObj, maxFeatures);
return;
}
//
// C++: void setNLevels(int nlevels)
//
//javadoc: ORB::setNLevels(nlevels)
public void setNLevels(int nlevels)
{
setNLevels_0(nativeObj, nlevels);
return;
}
//
// C++: void setPatchSize(int patchSize)
//
//javadoc: ORB::setPatchSize(patchSize)
public void setPatchSize(int patchSize)
{
setPatchSize_0(nativeObj, patchSize);
return;
}
//
// C++: void setScaleFactor(double scaleFactor)
//
//javadoc: ORB::setScaleFactor(scaleFactor)
public void setScaleFactor(double scaleFactor)
{
setScaleFactor_0(nativeObj, scaleFactor);
return;
}
//
// C++: void setScoreType(int scoreType)
//
//javadoc: ORB::setScoreType(scoreType)
public void setScoreType(int scoreType)
{
setScoreType_0(nativeObj, scoreType);
return;
}
//
// C++: void setWTA_K(int wta_k)
//
//javadoc: ORB::setWTA_K(wta_k)
public void setWTA_K(int wta_k)
{
setWTA_K_0(nativeObj, wta_k);
return;
}
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
// C++: static Ptr_ORB create(int nfeatures = 500, float scaleFactor = 1.2f, int nlevels = 8, int edgeThreshold = 31, int firstLevel = 0, int WTA_K = 2, int scoreType = ORB::HARRIS_SCORE, int patchSize = 31, int fastThreshold = 20)
private static native long create_0(int nfeatures, float scaleFactor, int nlevels, int edgeThreshold, int firstLevel, int WTA_K, int scoreType, int patchSize, int fastThreshold);
private static native long create_1();
// C++: String getDefaultName()
private static native String getDefaultName_0(long nativeObj);
// C++: double getScaleFactor()
private static native double getScaleFactor_0(long nativeObj);
// C++: int getEdgeThreshold()
private static native int getEdgeThreshold_0(long nativeObj);
// C++: int getFastThreshold()
private static native int getFastThreshold_0(long nativeObj);
// C++: int getFirstLevel()
private static native int getFirstLevel_0(long nativeObj);
// C++: int getMaxFeatures()
private static native int getMaxFeatures_0(long nativeObj);
// C++: int getNLevels()
private static native int getNLevels_0(long nativeObj);
// C++: int getPatchSize()
private static native int getPatchSize_0(long nativeObj);
// C++: int getScoreType()
private static native int getScoreType_0(long nativeObj);
// C++: int getWTA_K()
private static native int getWTA_K_0(long nativeObj);
// C++: void setEdgeThreshold(int edgeThreshold)
private static native void setEdgeThreshold_0(long nativeObj, int edgeThreshold);
// C++: void setFastThreshold(int fastThreshold)
private static native void setFastThreshold_0(long nativeObj, int fastThreshold);
// C++: void setFirstLevel(int firstLevel)
private static native void setFirstLevel_0(long nativeObj, int firstLevel);
// C++: void setMaxFeatures(int maxFeatures)
private static native void setMaxFeatures_0(long nativeObj, int maxFeatures);
// C++: void setNLevels(int nlevels)
private static native void setNLevels_0(long nativeObj, int nlevels);
// C++: void setPatchSize(int patchSize)
private static native void setPatchSize_0(long nativeObj, int patchSize);
// C++: void setScaleFactor(double scaleFactor)
private static native void setScaleFactor_0(long nativeObj, double scaleFactor);
// C++: void setScoreType(int scoreType)
private static native void setScoreType_0(long nativeObj, int scoreType);
// C++: void setWTA_K(int wta_k)
private static native void setWTA_K_0(long nativeObj, int wta_k);
// native support for java finalize()
private static native void delete(long nativeObj);
}