1 2 // 3 // This file is auto-generated. Please don't modify it! 4 // 5 package org.opencv.ml; 6 7 import org.opencv.core.Mat; 8 9 // C++: class DTrees 10 //javadoc: DTrees 11 public class DTrees extends StatModel { 12 DTrees(long addr)13 protected DTrees(long addr) { super(addr); } 14 15 16 public static final int 17 PREDICT_AUTO = 0, 18 PREDICT_SUM = (1<<8), 19 PREDICT_MAX_VOTE = (2<<8), 20 PREDICT_MASK = (3<<8); 21 22 23 // 24 // C++: int getMaxCategories() 25 // 26 27 //javadoc: DTrees::getMaxCategories() getMaxCategories()28 public int getMaxCategories() 29 { 30 31 int retVal = getMaxCategories_0(nativeObj); 32 33 return retVal; 34 } 35 36 37 // 38 // C++: void setMaxCategories(int val) 39 // 40 41 //javadoc: DTrees::setMaxCategories(val) setMaxCategories(int val)42 public void setMaxCategories(int val) 43 { 44 45 setMaxCategories_0(nativeObj, val); 46 47 return; 48 } 49 50 51 // 52 // C++: int getMaxDepth() 53 // 54 55 //javadoc: DTrees::getMaxDepth() getMaxDepth()56 public int getMaxDepth() 57 { 58 59 int retVal = getMaxDepth_0(nativeObj); 60 61 return retVal; 62 } 63 64 65 // 66 // C++: void setMaxDepth(int val) 67 // 68 69 //javadoc: DTrees::setMaxDepth(val) setMaxDepth(int val)70 public void setMaxDepth(int val) 71 { 72 73 setMaxDepth_0(nativeObj, val); 74 75 return; 76 } 77 78 79 // 80 // C++: int getMinSampleCount() 81 // 82 83 //javadoc: DTrees::getMinSampleCount() getMinSampleCount()84 public int getMinSampleCount() 85 { 86 87 int retVal = getMinSampleCount_0(nativeObj); 88 89 return retVal; 90 } 91 92 93 // 94 // C++: void setMinSampleCount(int val) 95 // 96 97 //javadoc: DTrees::setMinSampleCount(val) setMinSampleCount(int val)98 public void setMinSampleCount(int val) 99 { 100 101 setMinSampleCount_0(nativeObj, val); 102 103 return; 104 } 105 106 107 // 108 // C++: int getCVFolds() 109 // 110 111 //javadoc: DTrees::getCVFolds() getCVFolds()112 public int getCVFolds() 113 { 114 115 int retVal = getCVFolds_0(nativeObj); 116 117 return retVal; 118 } 119 120 121 // 122 // C++: void setCVFolds(int val) 123 // 124 125 //javadoc: DTrees::setCVFolds(val) setCVFolds(int val)126 public void setCVFolds(int val) 127 { 128 129 setCVFolds_0(nativeObj, val); 130 131 return; 132 } 133 134 135 // 136 // C++: bool getUseSurrogates() 137 // 138 139 //javadoc: DTrees::getUseSurrogates() getUseSurrogates()140 public boolean getUseSurrogates() 141 { 142 143 boolean retVal = getUseSurrogates_0(nativeObj); 144 145 return retVal; 146 } 147 148 149 // 150 // C++: void setUseSurrogates(bool val) 151 // 152 153 //javadoc: DTrees::setUseSurrogates(val) setUseSurrogates(boolean val)154 public void setUseSurrogates(boolean val) 155 { 156 157 setUseSurrogates_0(nativeObj, val); 158 159 return; 160 } 161 162 163 // 164 // C++: bool getUse1SERule() 165 // 166 167 //javadoc: DTrees::getUse1SERule() getUse1SERule()168 public boolean getUse1SERule() 169 { 170 171 boolean retVal = getUse1SERule_0(nativeObj); 172 173 return retVal; 174 } 175 176 177 // 178 // C++: void setUse1SERule(bool val) 179 // 180 181 //javadoc: DTrees::setUse1SERule(val) setUse1SERule(boolean val)182 public void setUse1SERule(boolean val) 183 { 184 185 setUse1SERule_0(nativeObj, val); 186 187 return; 188 } 189 190 191 // 192 // C++: bool getTruncatePrunedTree() 193 // 194 195 //javadoc: DTrees::getTruncatePrunedTree() getTruncatePrunedTree()196 public boolean getTruncatePrunedTree() 197 { 198 199 boolean retVal = getTruncatePrunedTree_0(nativeObj); 200 201 return retVal; 202 } 203 204 205 // 206 // C++: void setTruncatePrunedTree(bool val) 207 // 208 209 //javadoc: DTrees::setTruncatePrunedTree(val) setTruncatePrunedTree(boolean val)210 public void setTruncatePrunedTree(boolean val) 211 { 212 213 setTruncatePrunedTree_0(nativeObj, val); 214 215 return; 216 } 217 218 219 // 220 // C++: float getRegressionAccuracy() 221 // 222 223 //javadoc: DTrees::getRegressionAccuracy() getRegressionAccuracy()224 public float getRegressionAccuracy() 225 { 226 227 float retVal = getRegressionAccuracy_0(nativeObj); 228 229 return retVal; 230 } 231 232 233 // 234 // C++: void setRegressionAccuracy(float val) 235 // 236 237 //javadoc: DTrees::setRegressionAccuracy(val) setRegressionAccuracy(float val)238 public void setRegressionAccuracy(float val) 239 { 240 241 setRegressionAccuracy_0(nativeObj, val); 242 243 return; 244 } 245 246 247 // 248 // C++: Mat getPriors() 249 // 250 251 //javadoc: DTrees::getPriors() getPriors()252 public Mat getPriors() 253 { 254 255 Mat retVal = new Mat(getPriors_0(nativeObj)); 256 257 return retVal; 258 } 259 260 261 // 262 // C++: void setPriors(Mat val) 263 // 264 265 //javadoc: DTrees::setPriors(val) setPriors(Mat val)266 public void setPriors(Mat val) 267 { 268 269 setPriors_0(nativeObj, val.nativeObj); 270 271 return; 272 } 273 274 275 // 276 // C++: static Ptr_DTrees create() 277 // 278 279 //javadoc: DTrees::create() create()280 public static DTrees create() 281 { 282 283 DTrees retVal = new DTrees(create_0()); 284 285 return retVal; 286 } 287 288 289 @Override finalize()290 protected void finalize() throws Throwable { 291 delete(nativeObj); 292 } 293 294 295 296 // C++: int getMaxCategories() getMaxCategories_0(long nativeObj)297 private static native int getMaxCategories_0(long nativeObj); 298 299 // C++: void setMaxCategories(int val) setMaxCategories_0(long nativeObj, int val)300 private static native void setMaxCategories_0(long nativeObj, int val); 301 302 // C++: int getMaxDepth() getMaxDepth_0(long nativeObj)303 private static native int getMaxDepth_0(long nativeObj); 304 305 // C++: void setMaxDepth(int val) setMaxDepth_0(long nativeObj, int val)306 private static native void setMaxDepth_0(long nativeObj, int val); 307 308 // C++: int getMinSampleCount() getMinSampleCount_0(long nativeObj)309 private static native int getMinSampleCount_0(long nativeObj); 310 311 // C++: void setMinSampleCount(int val) setMinSampleCount_0(long nativeObj, int val)312 private static native void setMinSampleCount_0(long nativeObj, int val); 313 314 // C++: int getCVFolds() getCVFolds_0(long nativeObj)315 private static native int getCVFolds_0(long nativeObj); 316 317 // C++: void setCVFolds(int val) setCVFolds_0(long nativeObj, int val)318 private static native void setCVFolds_0(long nativeObj, int val); 319 320 // C++: bool getUseSurrogates() getUseSurrogates_0(long nativeObj)321 private static native boolean getUseSurrogates_0(long nativeObj); 322 323 // C++: void setUseSurrogates(bool val) setUseSurrogates_0(long nativeObj, boolean val)324 private static native void setUseSurrogates_0(long nativeObj, boolean val); 325 326 // C++: bool getUse1SERule() getUse1SERule_0(long nativeObj)327 private static native boolean getUse1SERule_0(long nativeObj); 328 329 // C++: void setUse1SERule(bool val) setUse1SERule_0(long nativeObj, boolean val)330 private static native void setUse1SERule_0(long nativeObj, boolean val); 331 332 // C++: bool getTruncatePrunedTree() getTruncatePrunedTree_0(long nativeObj)333 private static native boolean getTruncatePrunedTree_0(long nativeObj); 334 335 // C++: void setTruncatePrunedTree(bool val) setTruncatePrunedTree_0(long nativeObj, boolean val)336 private static native void setTruncatePrunedTree_0(long nativeObj, boolean val); 337 338 // C++: float getRegressionAccuracy() getRegressionAccuracy_0(long nativeObj)339 private static native float getRegressionAccuracy_0(long nativeObj); 340 341 // C++: void setRegressionAccuracy(float val) setRegressionAccuracy_0(long nativeObj, float val)342 private static native void setRegressionAccuracy_0(long nativeObj, float val); 343 344 // C++: Mat getPriors() getPriors_0(long nativeObj)345 private static native long getPriors_0(long nativeObj); 346 347 // C++: void setPriors(Mat val) setPriors_0(long nativeObj, long val_nativeObj)348 private static native void setPriors_0(long nativeObj, long val_nativeObj); 349 350 // C++: static Ptr_DTrees create() create_0()351 private static native long create_0(); 352 353 // native support for java finalize() delete(long nativeObj)354 private static native void delete(long nativeObj); 355 356 } 357