OSDN Git Service

ライブビューデータを拾うために検討中。その4。
[gokigen/FujiCam.git] / opencv41 / src / main / java / org / opencv / ml / SVMSGD.java
1 //
2 // This file is auto-generated. Please don't modify it!
3 //
4 package org.opencv.ml;
5
6 import java.lang.String;
7 import org.opencv.core.Mat;
8 import org.opencv.core.TermCriteria;
9 import org.opencv.ml.SVMSGD;
10 import org.opencv.ml.StatModel;
11
12 // C++: class SVMSGD
13 //javadoc: SVMSGD
14
15 public class SVMSGD extends StatModel {
16
17     protected SVMSGD(long addr) { super(addr); }
18
19     // internal usage only
20     public static SVMSGD __fromPtr__(long addr) { return new SVMSGD(addr); }
21
22     // C++: enum SvmsgdType
23     public static final int
24             SGD = 0,
25             ASGD = 1;
26
27
28     // C++: enum MarginType
29     public static final int
30             SOFT_MARGIN = 0,
31             HARD_MARGIN = 1;
32
33
34     //
35     // C++:  Mat cv::ml::SVMSGD::getWeights()
36     //
37
38     //javadoc: SVMSGD::getWeights()
39     public  Mat getWeights()
40     {
41         
42         Mat retVal = new Mat(getWeights_0(nativeObj));
43         
44         return retVal;
45     }
46
47
48     //
49     // C++: static Ptr_SVMSGD cv::ml::SVMSGD::create()
50     //
51
52     //javadoc: SVMSGD::create()
53     public static SVMSGD create()
54     {
55         
56         SVMSGD retVal = SVMSGD.__fromPtr__(create_0());
57         
58         return retVal;
59     }
60
61
62     //
63     // C++: static Ptr_SVMSGD cv::ml::SVMSGD::load(String filepath, String nodeName = String())
64     //
65
66     //javadoc: SVMSGD::load(filepath, nodeName)
67     public static SVMSGD load(String filepath, String nodeName)
68     {
69         
70         SVMSGD retVal = SVMSGD.__fromPtr__(load_0(filepath, nodeName));
71         
72         return retVal;
73     }
74
75     //javadoc: SVMSGD::load(filepath)
76     public static SVMSGD load(String filepath)
77     {
78         
79         SVMSGD retVal = SVMSGD.__fromPtr__(load_1(filepath));
80         
81         return retVal;
82     }
83
84
85     //
86     // C++:  TermCriteria cv::ml::SVMSGD::getTermCriteria()
87     //
88
89     //javadoc: SVMSGD::getTermCriteria()
90     public  TermCriteria getTermCriteria()
91     {
92         
93         TermCriteria retVal = new TermCriteria(getTermCriteria_0(nativeObj));
94         
95         return retVal;
96     }
97
98
99     //
100     // C++:  float cv::ml::SVMSGD::getInitialStepSize()
101     //
102
103     //javadoc: SVMSGD::getInitialStepSize()
104     public  float getInitialStepSize()
105     {
106         
107         float retVal = getInitialStepSize_0(nativeObj);
108         
109         return retVal;
110     }
111
112
113     //
114     // C++:  float cv::ml::SVMSGD::getMarginRegularization()
115     //
116
117     //javadoc: SVMSGD::getMarginRegularization()
118     public  float getMarginRegularization()
119     {
120         
121         float retVal = getMarginRegularization_0(nativeObj);
122         
123         return retVal;
124     }
125
126
127     //
128     // C++:  float cv::ml::SVMSGD::getShift()
129     //
130
131     //javadoc: SVMSGD::getShift()
132     public  float getShift()
133     {
134         
135         float retVal = getShift_0(nativeObj);
136         
137         return retVal;
138     }
139
140
141     //
142     // C++:  float cv::ml::SVMSGD::getStepDecreasingPower()
143     //
144
145     //javadoc: SVMSGD::getStepDecreasingPower()
146     public  float getStepDecreasingPower()
147     {
148         
149         float retVal = getStepDecreasingPower_0(nativeObj);
150         
151         return retVal;
152     }
153
154
155     //
156     // C++:  int cv::ml::SVMSGD::getMarginType()
157     //
158
159     //javadoc: SVMSGD::getMarginType()
160     public  int getMarginType()
161     {
162         
163         int retVal = getMarginType_0(nativeObj);
164         
165         return retVal;
166     }
167
168
169     //
170     // C++:  int cv::ml::SVMSGD::getSvmsgdType()
171     //
172
173     //javadoc: SVMSGD::getSvmsgdType()
174     public  int getSvmsgdType()
175     {
176         
177         int retVal = getSvmsgdType_0(nativeObj);
178         
179         return retVal;
180     }
181
182
183     //
184     // C++:  void cv::ml::SVMSGD::setInitialStepSize(float InitialStepSize)
185     //
186
187     //javadoc: SVMSGD::setInitialStepSize(InitialStepSize)
188     public  void setInitialStepSize(float InitialStepSize)
189     {
190         
191         setInitialStepSize_0(nativeObj, InitialStepSize);
192         
193         return;
194     }
195
196
197     //
198     // C++:  void cv::ml::SVMSGD::setMarginRegularization(float marginRegularization)
199     //
200
201     //javadoc: SVMSGD::setMarginRegularization(marginRegularization)
202     public  void setMarginRegularization(float marginRegularization)
203     {
204         
205         setMarginRegularization_0(nativeObj, marginRegularization);
206         
207         return;
208     }
209
210
211     //
212     // C++:  void cv::ml::SVMSGD::setMarginType(int marginType)
213     //
214
215     //javadoc: SVMSGD::setMarginType(marginType)
216     public  void setMarginType(int marginType)
217     {
218         
219         setMarginType_0(nativeObj, marginType);
220         
221         return;
222     }
223
224
225     //
226     // C++:  void cv::ml::SVMSGD::setOptimalParameters(int svmsgdType = SVMSGD::ASGD, int marginType = SVMSGD::SOFT_MARGIN)
227     //
228
229     //javadoc: SVMSGD::setOptimalParameters(svmsgdType, marginType)
230     public  void setOptimalParameters(int svmsgdType, int marginType)
231     {
232         
233         setOptimalParameters_0(nativeObj, svmsgdType, marginType);
234         
235         return;
236     }
237
238     //javadoc: SVMSGD::setOptimalParameters(svmsgdType)
239     public  void setOptimalParameters(int svmsgdType)
240     {
241         
242         setOptimalParameters_1(nativeObj, svmsgdType);
243         
244         return;
245     }
246
247     //javadoc: SVMSGD::setOptimalParameters()
248     public  void setOptimalParameters()
249     {
250         
251         setOptimalParameters_2(nativeObj);
252         
253         return;
254     }
255
256
257     //
258     // C++:  void cv::ml::SVMSGD::setStepDecreasingPower(float stepDecreasingPower)
259     //
260
261     //javadoc: SVMSGD::setStepDecreasingPower(stepDecreasingPower)
262     public  void setStepDecreasingPower(float stepDecreasingPower)
263     {
264         
265         setStepDecreasingPower_0(nativeObj, stepDecreasingPower);
266         
267         return;
268     }
269
270
271     //
272     // C++:  void cv::ml::SVMSGD::setSvmsgdType(int svmsgdType)
273     //
274
275     //javadoc: SVMSGD::setSvmsgdType(svmsgdType)
276     public  void setSvmsgdType(int svmsgdType)
277     {
278         
279         setSvmsgdType_0(nativeObj, svmsgdType);
280         
281         return;
282     }
283
284
285     //
286     // C++:  void cv::ml::SVMSGD::setTermCriteria(TermCriteria val)
287     //
288
289     //javadoc: SVMSGD::setTermCriteria(val)
290     public  void setTermCriteria(TermCriteria val)
291     {
292         
293         setTermCriteria_0(nativeObj, val.type, val.maxCount, val.epsilon);
294         
295         return;
296     }
297
298
299     @Override
300     protected void finalize() throws Throwable {
301         delete(nativeObj);
302     }
303
304
305
306     // C++:  Mat cv::ml::SVMSGD::getWeights()
307     private static native long getWeights_0(long nativeObj);
308
309     // C++: static Ptr_SVMSGD cv::ml::SVMSGD::create()
310     private static native long create_0();
311
312     // C++: static Ptr_SVMSGD cv::ml::SVMSGD::load(String filepath, String nodeName = String())
313     private static native long load_0(String filepath, String nodeName);
314     private static native long load_1(String filepath);
315
316     // C++:  TermCriteria cv::ml::SVMSGD::getTermCriteria()
317     private static native double[] getTermCriteria_0(long nativeObj);
318
319     // C++:  float cv::ml::SVMSGD::getInitialStepSize()
320     private static native float getInitialStepSize_0(long nativeObj);
321
322     // C++:  float cv::ml::SVMSGD::getMarginRegularization()
323     private static native float getMarginRegularization_0(long nativeObj);
324
325     // C++:  float cv::ml::SVMSGD::getShift()
326     private static native float getShift_0(long nativeObj);
327
328     // C++:  float cv::ml::SVMSGD::getStepDecreasingPower()
329     private static native float getStepDecreasingPower_0(long nativeObj);
330
331     // C++:  int cv::ml::SVMSGD::getMarginType()
332     private static native int getMarginType_0(long nativeObj);
333
334     // C++:  int cv::ml::SVMSGD::getSvmsgdType()
335     private static native int getSvmsgdType_0(long nativeObj);
336
337     // C++:  void cv::ml::SVMSGD::setInitialStepSize(float InitialStepSize)
338     private static native void setInitialStepSize_0(long nativeObj, float InitialStepSize);
339
340     // C++:  void cv::ml::SVMSGD::setMarginRegularization(float marginRegularization)
341     private static native void setMarginRegularization_0(long nativeObj, float marginRegularization);
342
343     // C++:  void cv::ml::SVMSGD::setMarginType(int marginType)
344     private static native void setMarginType_0(long nativeObj, int marginType);
345
346     // C++:  void cv::ml::SVMSGD::setOptimalParameters(int svmsgdType = SVMSGD::ASGD, int marginType = SVMSGD::SOFT_MARGIN)
347     private static native void setOptimalParameters_0(long nativeObj, int svmsgdType, int marginType);
348     private static native void setOptimalParameters_1(long nativeObj, int svmsgdType);
349     private static native void setOptimalParameters_2(long nativeObj);
350
351     // C++:  void cv::ml::SVMSGD::setStepDecreasingPower(float stepDecreasingPower)
352     private static native void setStepDecreasingPower_0(long nativeObj, float stepDecreasingPower);
353
354     // C++:  void cv::ml::SVMSGD::setSvmsgdType(int svmsgdType)
355     private static native void setSvmsgdType_0(long nativeObj, int svmsgdType);
356
357     // C++:  void cv::ml::SVMSGD::setTermCriteria(TermCriteria val)
358     private static native void setTermCriteria_0(long nativeObj, int val_type, int val_maxCount, double val_epsilon);
359
360     // native support for java finalize()
361     private static native void delete(long nativeObj);
362
363 }