001//
002// This file is auto-generated. Please don't modify it!
003//
004package org.opencv.video;
005
006import org.opencv.video.DenseOpticalFlow;
007import org.opencv.video.FarnebackOpticalFlow;
008
009// C++: class FarnebackOpticalFlow
010/**
011 * Class computing a dense optical flow using the Gunnar Farneback's algorithm.
012 */
013public class FarnebackOpticalFlow extends DenseOpticalFlow {
014
015    protected FarnebackOpticalFlow(long addr) { super(addr); }
016
017    // internal usage only
018    public static FarnebackOpticalFlow __fromPtr__(long addr) { return new FarnebackOpticalFlow(addr); }
019
020    //
021    // C++:  int cv::FarnebackOpticalFlow::getNumLevels()
022    //
023
024    public int getNumLevels() {
025        return getNumLevels_0(nativeObj);
026    }
027
028
029    //
030    // C++:  void cv::FarnebackOpticalFlow::setNumLevels(int numLevels)
031    //
032
033    public void setNumLevels(int numLevels) {
034        setNumLevels_0(nativeObj, numLevels);
035    }
036
037
038    //
039    // C++:  double cv::FarnebackOpticalFlow::getPyrScale()
040    //
041
042    public double getPyrScale() {
043        return getPyrScale_0(nativeObj);
044    }
045
046
047    //
048    // C++:  void cv::FarnebackOpticalFlow::setPyrScale(double pyrScale)
049    //
050
051    public void setPyrScale(double pyrScale) {
052        setPyrScale_0(nativeObj, pyrScale);
053    }
054
055
056    //
057    // C++:  bool cv::FarnebackOpticalFlow::getFastPyramids()
058    //
059
060    public boolean getFastPyramids() {
061        return getFastPyramids_0(nativeObj);
062    }
063
064
065    //
066    // C++:  void cv::FarnebackOpticalFlow::setFastPyramids(bool fastPyramids)
067    //
068
069    public void setFastPyramids(boolean fastPyramids) {
070        setFastPyramids_0(nativeObj, fastPyramids);
071    }
072
073
074    //
075    // C++:  int cv::FarnebackOpticalFlow::getWinSize()
076    //
077
078    public int getWinSize() {
079        return getWinSize_0(nativeObj);
080    }
081
082
083    //
084    // C++:  void cv::FarnebackOpticalFlow::setWinSize(int winSize)
085    //
086
087    public void setWinSize(int winSize) {
088        setWinSize_0(nativeObj, winSize);
089    }
090
091
092    //
093    // C++:  int cv::FarnebackOpticalFlow::getNumIters()
094    //
095
096    public int getNumIters() {
097        return getNumIters_0(nativeObj);
098    }
099
100
101    //
102    // C++:  void cv::FarnebackOpticalFlow::setNumIters(int numIters)
103    //
104
105    public void setNumIters(int numIters) {
106        setNumIters_0(nativeObj, numIters);
107    }
108
109
110    //
111    // C++:  int cv::FarnebackOpticalFlow::getPolyN()
112    //
113
114    public int getPolyN() {
115        return getPolyN_0(nativeObj);
116    }
117
118
119    //
120    // C++:  void cv::FarnebackOpticalFlow::setPolyN(int polyN)
121    //
122
123    public void setPolyN(int polyN) {
124        setPolyN_0(nativeObj, polyN);
125    }
126
127
128    //
129    // C++:  double cv::FarnebackOpticalFlow::getPolySigma()
130    //
131
132    public double getPolySigma() {
133        return getPolySigma_0(nativeObj);
134    }
135
136
137    //
138    // C++:  void cv::FarnebackOpticalFlow::setPolySigma(double polySigma)
139    //
140
141    public void setPolySigma(double polySigma) {
142        setPolySigma_0(nativeObj, polySigma);
143    }
144
145
146    //
147    // C++:  int cv::FarnebackOpticalFlow::getFlags()
148    //
149
150    public int getFlags() {
151        return getFlags_0(nativeObj);
152    }
153
154
155    //
156    // C++:  void cv::FarnebackOpticalFlow::setFlags(int flags)
157    //
158
159    public void setFlags(int flags) {
160        setFlags_0(nativeObj, flags);
161    }
162
163
164    //
165    // C++: static Ptr_FarnebackOpticalFlow cv::FarnebackOpticalFlow::create(int numLevels = 5, double pyrScale = 0.5, bool fastPyramids = false, int winSize = 13, int numIters = 10, int polyN = 5, double polySigma = 1.1, int flags = 0)
166    //
167
168    public static FarnebackOpticalFlow create(int numLevels, double pyrScale, boolean fastPyramids, int winSize, int numIters, int polyN, double polySigma, int flags) {
169        return FarnebackOpticalFlow.__fromPtr__(create_0(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma, flags));
170    }
171
172    public static FarnebackOpticalFlow create(int numLevels, double pyrScale, boolean fastPyramids, int winSize, int numIters, int polyN, double polySigma) {
173        return FarnebackOpticalFlow.__fromPtr__(create_1(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN, polySigma));
174    }
175
176    public static FarnebackOpticalFlow create(int numLevels, double pyrScale, boolean fastPyramids, int winSize, int numIters, int polyN) {
177        return FarnebackOpticalFlow.__fromPtr__(create_2(numLevels, pyrScale, fastPyramids, winSize, numIters, polyN));
178    }
179
180    public static FarnebackOpticalFlow create(int numLevels, double pyrScale, boolean fastPyramids, int winSize, int numIters) {
181        return FarnebackOpticalFlow.__fromPtr__(create_3(numLevels, pyrScale, fastPyramids, winSize, numIters));
182    }
183
184    public static FarnebackOpticalFlow create(int numLevels, double pyrScale, boolean fastPyramids, int winSize) {
185        return FarnebackOpticalFlow.__fromPtr__(create_4(numLevels, pyrScale, fastPyramids, winSize));
186    }
187
188    public static FarnebackOpticalFlow create(int numLevels, double pyrScale, boolean fastPyramids) {
189        return FarnebackOpticalFlow.__fromPtr__(create_5(numLevels, pyrScale, fastPyramids));
190    }
191
192    public static FarnebackOpticalFlow create(int numLevels, double pyrScale) {
193        return FarnebackOpticalFlow.__fromPtr__(create_6(numLevels, pyrScale));
194    }
195
196    public static FarnebackOpticalFlow create(int numLevels) {
197        return FarnebackOpticalFlow.__fromPtr__(create_7(numLevels));
198    }
199
200    public static FarnebackOpticalFlow create() {
201        return FarnebackOpticalFlow.__fromPtr__(create_8());
202    }
203
204
205    @Override
206    protected void finalize() throws Throwable {
207        delete(nativeObj);
208    }
209
210
211
212    // C++:  int cv::FarnebackOpticalFlow::getNumLevels()
213    private static native int getNumLevels_0(long nativeObj);
214
215    // C++:  void cv::FarnebackOpticalFlow::setNumLevels(int numLevels)
216    private static native void setNumLevels_0(long nativeObj, int numLevels);
217
218    // C++:  double cv::FarnebackOpticalFlow::getPyrScale()
219    private static native double getPyrScale_0(long nativeObj);
220
221    // C++:  void cv::FarnebackOpticalFlow::setPyrScale(double pyrScale)
222    private static native void setPyrScale_0(long nativeObj, double pyrScale);
223
224    // C++:  bool cv::FarnebackOpticalFlow::getFastPyramids()
225    private static native boolean getFastPyramids_0(long nativeObj);
226
227    // C++:  void cv::FarnebackOpticalFlow::setFastPyramids(bool fastPyramids)
228    private static native void setFastPyramids_0(long nativeObj, boolean fastPyramids);
229
230    // C++:  int cv::FarnebackOpticalFlow::getWinSize()
231    private static native int getWinSize_0(long nativeObj);
232
233    // C++:  void cv::FarnebackOpticalFlow::setWinSize(int winSize)
234    private static native void setWinSize_0(long nativeObj, int winSize);
235
236    // C++:  int cv::FarnebackOpticalFlow::getNumIters()
237    private static native int getNumIters_0(long nativeObj);
238
239    // C++:  void cv::FarnebackOpticalFlow::setNumIters(int numIters)
240    private static native void setNumIters_0(long nativeObj, int numIters);
241
242    // C++:  int cv::FarnebackOpticalFlow::getPolyN()
243    private static native int getPolyN_0(long nativeObj);
244
245    // C++:  void cv::FarnebackOpticalFlow::setPolyN(int polyN)
246    private static native void setPolyN_0(long nativeObj, int polyN);
247
248    // C++:  double cv::FarnebackOpticalFlow::getPolySigma()
249    private static native double getPolySigma_0(long nativeObj);
250
251    // C++:  void cv::FarnebackOpticalFlow::setPolySigma(double polySigma)
252    private static native void setPolySigma_0(long nativeObj, double polySigma);
253
254    // C++:  int cv::FarnebackOpticalFlow::getFlags()
255    private static native int getFlags_0(long nativeObj);
256
257    // C++:  void cv::FarnebackOpticalFlow::setFlags(int flags)
258    private static native void setFlags_0(long nativeObj, int flags);
259
260    // C++: static Ptr_FarnebackOpticalFlow cv::FarnebackOpticalFlow::create(int numLevels = 5, double pyrScale = 0.5, bool fastPyramids = false, int winSize = 13, int numIters = 10, int polyN = 5, double polySigma = 1.1, int flags = 0)
261    private static native long create_0(int numLevels, double pyrScale, boolean fastPyramids, int winSize, int numIters, int polyN, double polySigma, int flags);
262    private static native long create_1(int numLevels, double pyrScale, boolean fastPyramids, int winSize, int numIters, int polyN, double polySigma);
263    private static native long create_2(int numLevels, double pyrScale, boolean fastPyramids, int winSize, int numIters, int polyN);
264    private static native long create_3(int numLevels, double pyrScale, boolean fastPyramids, int winSize, int numIters);
265    private static native long create_4(int numLevels, double pyrScale, boolean fastPyramids, int winSize);
266    private static native long create_5(int numLevels, double pyrScale, boolean fastPyramids);
267    private static native long create_6(int numLevels, double pyrScale);
268    private static native long create_7(int numLevels);
269    private static native long create_8();
270
271    // native support for java finalize()
272    private static native void delete(long nativeObj);
273
274}