RTrees.java
4.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
//
// This file is auto-generated. Please don't modify it!
//
package org.opencv.ml;
import java.lang.String;
import org.opencv.core.Mat;
import org.opencv.core.TermCriteria;
// C++: class RTrees
//javadoc: RTrees
public class RTrees extends DTrees {
protected RTrees(long addr) { super(addr); }
//
// C++: Mat getVarImportance()
//
//javadoc: RTrees::getVarImportance()
public Mat getVarImportance()
{
Mat retVal = new Mat(getVarImportance_0(nativeObj));
return retVal;
}
//
// C++: static Ptr_RTrees create()
//
//javadoc: RTrees::create()
public static RTrees create()
{
RTrees retVal = new RTrees(create_0());
return retVal;
}
//
// C++: static Ptr_RTrees load(String filepath, String nodeName = String())
//
//javadoc: RTrees::load(filepath, nodeName)
public static RTrees load(String filepath, String nodeName)
{
RTrees retVal = new RTrees(load_0(filepath, nodeName));
return retVal;
}
//javadoc: RTrees::load(filepath)
public static RTrees load(String filepath)
{
RTrees retVal = new RTrees(load_1(filepath));
return retVal;
}
//
// C++: TermCriteria getTermCriteria()
//
//javadoc: RTrees::getTermCriteria()
public TermCriteria getTermCriteria()
{
TermCriteria retVal = new TermCriteria(getTermCriteria_0(nativeObj));
return retVal;
}
//
// C++: bool getCalculateVarImportance()
//
//javadoc: RTrees::getCalculateVarImportance()
public boolean getCalculateVarImportance()
{
boolean retVal = getCalculateVarImportance_0(nativeObj);
return retVal;
}
//
// C++: int getActiveVarCount()
//
//javadoc: RTrees::getActiveVarCount()
public int getActiveVarCount()
{
int retVal = getActiveVarCount_0(nativeObj);
return retVal;
}
//
// C++: void getVotes(Mat samples, Mat& results, int flags)
//
//javadoc: RTrees::getVotes(samples, results, flags)
public void getVotes(Mat samples, Mat results, int flags)
{
getVotes_0(nativeObj, samples.nativeObj, results.nativeObj, flags);
return;
}
//
// C++: void setActiveVarCount(int val)
//
//javadoc: RTrees::setActiveVarCount(val)
public void setActiveVarCount(int val)
{
setActiveVarCount_0(nativeObj, val);
return;
}
//
// C++: void setCalculateVarImportance(bool val)
//
//javadoc: RTrees::setCalculateVarImportance(val)
public void setCalculateVarImportance(boolean val)
{
setCalculateVarImportance_0(nativeObj, val);
return;
}
//
// C++: void setTermCriteria(TermCriteria val)
//
//javadoc: RTrees::setTermCriteria(val)
public void setTermCriteria(TermCriteria val)
{
setTermCriteria_0(nativeObj, val.type, val.maxCount, val.epsilon);
return;
}
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
// C++: Mat getVarImportance()
private static native long getVarImportance_0(long nativeObj);
// C++: static Ptr_RTrees create()
private static native long create_0();
// C++: static Ptr_RTrees load(String filepath, String nodeName = String())
private static native long load_0(String filepath, String nodeName);
private static native long load_1(String filepath);
// C++: TermCriteria getTermCriteria()
private static native double[] getTermCriteria_0(long nativeObj);
// C++: bool getCalculateVarImportance()
private static native boolean getCalculateVarImportance_0(long nativeObj);
// C++: int getActiveVarCount()
private static native int getActiveVarCount_0(long nativeObj);
// C++: void getVotes(Mat samples, Mat& results, int flags)
private static native void getVotes_0(long nativeObj, long samples_nativeObj, long results_nativeObj, int flags);
// C++: void setActiveVarCount(int val)
private static native void setActiveVarCount_0(long nativeObj, int val);
// C++: void setCalculateVarImportance(bool val)
private static native void setCalculateVarImportance_0(long nativeObj, boolean val);
// C++: void setTermCriteria(TermCriteria val)
private static native void setTermCriteria_0(long nativeObj, int val_type, int val_maxCount, double val_epsilon);
// native support for java finalize()
private static native void delete(long nativeObj);
}