001 002// 003// This file is auto-generated. Please don't modify it! 004// 005package org.opencv.video; 006 007 008 009// C++: class BackgroundSubtractorMOG2 010//javadoc: BackgroundSubtractorMOG2 011public class BackgroundSubtractorMOG2 extends BackgroundSubtractor { 012 013 protected BackgroundSubtractorMOG2(long addr) { super(addr); } 014 015 016 // 017 // C++: bool getDetectShadows() 018 // 019 020 //javadoc: BackgroundSubtractorMOG2::getDetectShadows() 021 public boolean getDetectShadows() 022 { 023 024 boolean retVal = getDetectShadows_0(nativeObj); 025 026 return retVal; 027 } 028 029 030 // 031 // C++: double getBackgroundRatio() 032 // 033 034 //javadoc: BackgroundSubtractorMOG2::getBackgroundRatio() 035 public double getBackgroundRatio() 036 { 037 038 double retVal = getBackgroundRatio_0(nativeObj); 039 040 return retVal; 041 } 042 043 044 // 045 // C++: double getComplexityReductionThreshold() 046 // 047 048 //javadoc: BackgroundSubtractorMOG2::getComplexityReductionThreshold() 049 public double getComplexityReductionThreshold() 050 { 051 052 double retVal = getComplexityReductionThreshold_0(nativeObj); 053 054 return retVal; 055 } 056 057 058 // 059 // C++: double getShadowThreshold() 060 // 061 062 //javadoc: BackgroundSubtractorMOG2::getShadowThreshold() 063 public double getShadowThreshold() 064 { 065 066 double retVal = getShadowThreshold_0(nativeObj); 067 068 return retVal; 069 } 070 071 072 // 073 // C++: double getVarInit() 074 // 075 076 //javadoc: BackgroundSubtractorMOG2::getVarInit() 077 public double getVarInit() 078 { 079 080 double retVal = getVarInit_0(nativeObj); 081 082 return retVal; 083 } 084 085 086 // 087 // C++: double getVarMax() 088 // 089 090 //javadoc: BackgroundSubtractorMOG2::getVarMax() 091 public double getVarMax() 092 { 093 094 double retVal = getVarMax_0(nativeObj); 095 096 return retVal; 097 } 098 099 100 // 101 // C++: double getVarMin() 102 // 103 104 //javadoc: BackgroundSubtractorMOG2::getVarMin() 105 public double getVarMin() 106 { 107 108 double retVal = getVarMin_0(nativeObj); 109 110 return retVal; 111 } 112 113 114 // 115 // C++: double getVarThreshold() 116 // 117 118 //javadoc: BackgroundSubtractorMOG2::getVarThreshold() 119 public double getVarThreshold() 120 { 121 122 double retVal = getVarThreshold_0(nativeObj); 123 124 return retVal; 125 } 126 127 128 // 129 // C++: double getVarThresholdGen() 130 // 131 132 //javadoc: BackgroundSubtractorMOG2::getVarThresholdGen() 133 public double getVarThresholdGen() 134 { 135 136 double retVal = getVarThresholdGen_0(nativeObj); 137 138 return retVal; 139 } 140 141 142 // 143 // C++: int getHistory() 144 // 145 146 //javadoc: BackgroundSubtractorMOG2::getHistory() 147 public int getHistory() 148 { 149 150 int retVal = getHistory_0(nativeObj); 151 152 return retVal; 153 } 154 155 156 // 157 // C++: int getNMixtures() 158 // 159 160 //javadoc: BackgroundSubtractorMOG2::getNMixtures() 161 public int getNMixtures() 162 { 163 164 int retVal = getNMixtures_0(nativeObj); 165 166 return retVal; 167 } 168 169 170 // 171 // C++: int getShadowValue() 172 // 173 174 //javadoc: BackgroundSubtractorMOG2::getShadowValue() 175 public int getShadowValue() 176 { 177 178 int retVal = getShadowValue_0(nativeObj); 179 180 return retVal; 181 } 182 183 184 // 185 // C++: void setBackgroundRatio(double ratio) 186 // 187 188 //javadoc: BackgroundSubtractorMOG2::setBackgroundRatio(ratio) 189 public void setBackgroundRatio(double ratio) 190 { 191 192 setBackgroundRatio_0(nativeObj, ratio); 193 194 return; 195 } 196 197 198 // 199 // C++: void setComplexityReductionThreshold(double ct) 200 // 201 202 //javadoc: BackgroundSubtractorMOG2::setComplexityReductionThreshold(ct) 203 public void setComplexityReductionThreshold(double ct) 204 { 205 206 setComplexityReductionThreshold_0(nativeObj, ct); 207 208 return; 209 } 210 211 212 // 213 // C++: void setDetectShadows(bool detectShadows) 214 // 215 216 //javadoc: BackgroundSubtractorMOG2::setDetectShadows(detectShadows) 217 public void setDetectShadows(boolean detectShadows) 218 { 219 220 setDetectShadows_0(nativeObj, detectShadows); 221 222 return; 223 } 224 225 226 // 227 // C++: void setHistory(int history) 228 // 229 230 //javadoc: BackgroundSubtractorMOG2::setHistory(history) 231 public void setHistory(int history) 232 { 233 234 setHistory_0(nativeObj, history); 235 236 return; 237 } 238 239 240 // 241 // C++: void setNMixtures(int nmixtures) 242 // 243 244 //javadoc: BackgroundSubtractorMOG2::setNMixtures(nmixtures) 245 public void setNMixtures(int nmixtures) 246 { 247 248 setNMixtures_0(nativeObj, nmixtures); 249 250 return; 251 } 252 253 254 // 255 // C++: void setShadowThreshold(double threshold) 256 // 257 258 //javadoc: BackgroundSubtractorMOG2::setShadowThreshold(threshold) 259 public void setShadowThreshold(double threshold) 260 { 261 262 setShadowThreshold_0(nativeObj, threshold); 263 264 return; 265 } 266 267 268 // 269 // C++: void setShadowValue(int value) 270 // 271 272 //javadoc: BackgroundSubtractorMOG2::setShadowValue(value) 273 public void setShadowValue(int value) 274 { 275 276 setShadowValue_0(nativeObj, value); 277 278 return; 279 } 280 281 282 // 283 // C++: void setVarInit(double varInit) 284 // 285 286 //javadoc: BackgroundSubtractorMOG2::setVarInit(varInit) 287 public void setVarInit(double varInit) 288 { 289 290 setVarInit_0(nativeObj, varInit); 291 292 return; 293 } 294 295 296 // 297 // C++: void setVarMax(double varMax) 298 // 299 300 //javadoc: BackgroundSubtractorMOG2::setVarMax(varMax) 301 public void setVarMax(double varMax) 302 { 303 304 setVarMax_0(nativeObj, varMax); 305 306 return; 307 } 308 309 310 // 311 // C++: void setVarMin(double varMin) 312 // 313 314 //javadoc: BackgroundSubtractorMOG2::setVarMin(varMin) 315 public void setVarMin(double varMin) 316 { 317 318 setVarMin_0(nativeObj, varMin); 319 320 return; 321 } 322 323 324 // 325 // C++: void setVarThreshold(double varThreshold) 326 // 327 328 //javadoc: BackgroundSubtractorMOG2::setVarThreshold(varThreshold) 329 public void setVarThreshold(double varThreshold) 330 { 331 332 setVarThreshold_0(nativeObj, varThreshold); 333 334 return; 335 } 336 337 338 // 339 // C++: void setVarThresholdGen(double varThresholdGen) 340 // 341 342 //javadoc: BackgroundSubtractorMOG2::setVarThresholdGen(varThresholdGen) 343 public void setVarThresholdGen(double varThresholdGen) 344 { 345 346 setVarThresholdGen_0(nativeObj, varThresholdGen); 347 348 return; 349 } 350 351 352 @Override 353 protected void finalize() throws Throwable { 354 delete(nativeObj); 355 } 356 357 358 359 // C++: bool getDetectShadows() 360 private static native boolean getDetectShadows_0(long nativeObj); 361 362 // C++: double getBackgroundRatio() 363 private static native double getBackgroundRatio_0(long nativeObj); 364 365 // C++: double getComplexityReductionThreshold() 366 private static native double getComplexityReductionThreshold_0(long nativeObj); 367 368 // C++: double getShadowThreshold() 369 private static native double getShadowThreshold_0(long nativeObj); 370 371 // C++: double getVarInit() 372 private static native double getVarInit_0(long nativeObj); 373 374 // C++: double getVarMax() 375 private static native double getVarMax_0(long nativeObj); 376 377 // C++: double getVarMin() 378 private static native double getVarMin_0(long nativeObj); 379 380 // C++: double getVarThreshold() 381 private static native double getVarThreshold_0(long nativeObj); 382 383 // C++: double getVarThresholdGen() 384 private static native double getVarThresholdGen_0(long nativeObj); 385 386 // C++: int getHistory() 387 private static native int getHistory_0(long nativeObj); 388 389 // C++: int getNMixtures() 390 private static native int getNMixtures_0(long nativeObj); 391 392 // C++: int getShadowValue() 393 private static native int getShadowValue_0(long nativeObj); 394 395 // C++: void setBackgroundRatio(double ratio) 396 private static native void setBackgroundRatio_0(long nativeObj, double ratio); 397 398 // C++: void setComplexityReductionThreshold(double ct) 399 private static native void setComplexityReductionThreshold_0(long nativeObj, double ct); 400 401 // C++: void setDetectShadows(bool detectShadows) 402 private static native void setDetectShadows_0(long nativeObj, boolean detectShadows); 403 404 // C++: void setHistory(int history) 405 private static native void setHistory_0(long nativeObj, int history); 406 407 // C++: void setNMixtures(int nmixtures) 408 private static native void setNMixtures_0(long nativeObj, int nmixtures); 409 410 // C++: void setShadowThreshold(double threshold) 411 private static native void setShadowThreshold_0(long nativeObj, double threshold); 412 413 // C++: void setShadowValue(int value) 414 private static native void setShadowValue_0(long nativeObj, int value); 415 416 // C++: void setVarInit(double varInit) 417 private static native void setVarInit_0(long nativeObj, double varInit); 418 419 // C++: void setVarMax(double varMax) 420 private static native void setVarMax_0(long nativeObj, double varMax); 421 422 // C++: void setVarMin(double varMin) 423 private static native void setVarMin_0(long nativeObj, double varMin); 424 425 // C++: void setVarThreshold(double varThreshold) 426 private static native void setVarThreshold_0(long nativeObj, double varThreshold); 427 428 // C++: void setVarThresholdGen(double varThresholdGen) 429 private static native void setVarThresholdGen_0(long nativeObj, double varThresholdGen); 430 431 // native support for java finalize() 432 private static native void delete(long nativeObj); 433 434}