SparsePyrLKOpticalFlow.java
5.67 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
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.video;
import org.opencv.core.Size;
import org.opencv.core.TermCriteria;
// C++: class SparsePyrLKOpticalFlow
//javadoc: SparsePyrLKOpticalFlow
public class SparsePyrLKOpticalFlow extends SparseOpticalFlow {
protected SparsePyrLKOpticalFlow(long addr) { super(addr); }
//
// C++: static Ptr_SparsePyrLKOpticalFlow create(Size winSize = Size(21, 21), int maxLevel = 3, TermCriteria crit = TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 0.01), int flags = 0, double minEigThreshold = 1e-4)
//
//javadoc: SparsePyrLKOpticalFlow::create(winSize, maxLevel, crit, flags, minEigThreshold)
public static SparsePyrLKOpticalFlow create(Size winSize, int maxLevel, TermCriteria crit, int flags, double minEigThreshold)
{
SparsePyrLKOpticalFlow retVal = new SparsePyrLKOpticalFlow(create_0(winSize.width, winSize.height, maxLevel, crit.type, crit.maxCount, crit.epsilon, flags, minEigThreshold));
return retVal;
}
//javadoc: SparsePyrLKOpticalFlow::create()
public static SparsePyrLKOpticalFlow create()
{
SparsePyrLKOpticalFlow retVal = new SparsePyrLKOpticalFlow(create_1());
return retVal;
}
//
// C++: Size getWinSize()
//
//javadoc: SparsePyrLKOpticalFlow::getWinSize()
public Size getWinSize()
{
Size retVal = new Size(getWinSize_0(nativeObj));
return retVal;
}
//
// C++: TermCriteria getTermCriteria()
//
//javadoc: SparsePyrLKOpticalFlow::getTermCriteria()
public TermCriteria getTermCriteria()
{
TermCriteria retVal = new TermCriteria(getTermCriteria_0(nativeObj));
return retVal;
}
//
// C++: double getMinEigThreshold()
//
//javadoc: SparsePyrLKOpticalFlow::getMinEigThreshold()
public double getMinEigThreshold()
{
double retVal = getMinEigThreshold_0(nativeObj);
return retVal;
}
//
// C++: int getFlags()
//
//javadoc: SparsePyrLKOpticalFlow::getFlags()
public int getFlags()
{
int retVal = getFlags_0(nativeObj);
return retVal;
}
//
// C++: int getMaxLevel()
//
//javadoc: SparsePyrLKOpticalFlow::getMaxLevel()
public int getMaxLevel()
{
int retVal = getMaxLevel_0(nativeObj);
return retVal;
}
//
// C++: void setFlags(int flags)
//
//javadoc: SparsePyrLKOpticalFlow::setFlags(flags)
public void setFlags(int flags)
{
setFlags_0(nativeObj, flags);
return;
}
//
// C++: void setMaxLevel(int maxLevel)
//
//javadoc: SparsePyrLKOpticalFlow::setMaxLevel(maxLevel)
public void setMaxLevel(int maxLevel)
{
setMaxLevel_0(nativeObj, maxLevel);
return;
}
//
// C++: void setMinEigThreshold(double minEigThreshold)
//
//javadoc: SparsePyrLKOpticalFlow::setMinEigThreshold(minEigThreshold)
public void setMinEigThreshold(double minEigThreshold)
{
setMinEigThreshold_0(nativeObj, minEigThreshold);
return;
}
//
// C++: void setTermCriteria(TermCriteria crit)
//
//javadoc: SparsePyrLKOpticalFlow::setTermCriteria(crit)
public void setTermCriteria(TermCriteria crit)
{
setTermCriteria_0(nativeObj, crit.type, crit.maxCount, crit.epsilon);
return;
}
//
// C++: void setWinSize(Size winSize)
//
//javadoc: SparsePyrLKOpticalFlow::setWinSize(winSize)
public void setWinSize(Size winSize)
{
setWinSize_0(nativeObj, winSize.width, winSize.height);
return;
}
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
// C++: static Ptr_SparsePyrLKOpticalFlow create(Size winSize = Size(21, 21), int maxLevel = 3, TermCriteria crit = TermCriteria(TermCriteria::COUNT+TermCriteria::EPS, 30, 0.01), int flags = 0, double minEigThreshold = 1e-4)
private static native long create_0(double winSize_width, double winSize_height, int maxLevel, int crit_type, int crit_maxCount, double crit_epsilon, int flags, double minEigThreshold);
private static native long create_1();
// C++: Size getWinSize()
private static native double[] getWinSize_0(long nativeObj);
// C++: TermCriteria getTermCriteria()
private static native double[] getTermCriteria_0(long nativeObj);
// C++: double getMinEigThreshold()
private static native double getMinEigThreshold_0(long nativeObj);
// C++: int getFlags()
private static native int getFlags_0(long nativeObj);
// C++: int getMaxLevel()
private static native int getMaxLevel_0(long nativeObj);
// C++: void setFlags(int flags)
private static native void setFlags_0(long nativeObj, int flags);
// C++: void setMaxLevel(int maxLevel)
private static native void setMaxLevel_0(long nativeObj, int maxLevel);
// C++: void setMinEigThreshold(double minEigThreshold)
private static native void setMinEigThreshold_0(long nativeObj, double minEigThreshold);
// C++: void setTermCriteria(TermCriteria crit)
private static native void setTermCriteria_0(long nativeObj, int crit_type, int crit_maxCount, double crit_epsilon);
// C++: void setWinSize(Size winSize)
private static native void setWinSize_0(long nativeObj, double winSize_width, double winSize_height);
// native support for java finalize()
private static native void delete(long nativeObj);
}