BackgroundSubtractorKNN (OpenCV 3.4.2 Java documentation)
Date: 2019-04-14

org.opencv.video

## Class BackgroundSubtractorKNN

- java.lang.Object
- - org.opencv.core.Algorithm
  - - org.opencv.video.BackgroundSubtractor
    - - org.opencv.video.BackgroundSubtractorKNN

-     public class BackgroundSubtractorKNN
      extends BackgroundSubtractor

- - ### Field Summary

    - ### Fields inherited from class org.opencv.core.Algorithm

      `nativeObj`

  - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `BackgroundSubtractorKNN(long addr)`

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static BackgroundSubtractorKNN` | `__fromPtr__(long addr)`
    `protected void` | `finalize()`
    `boolean` | `getDetectShadows()`
    `double` | `getDist2Threshold()`
    `int` | `getHistory()`
    `int` | `getkNNSamples()`
    `int` | `getNSamples()`
    `double` | `getShadowThreshold()`
    `int` | `getShadowValue()`
    `void` | `setDetectShadows(boolean detectShadows)`
    `void` | `setDist2Threshold(double _dist2Threshold)`
    `void` | `setHistory(int history)`
    `void` | `setkNNSamples(int _nkNN)`
    `void` | `setNSamples(int _nN)`
    `void` | `setShadowThreshold(double threshold)`
    `void` | `setShadowValue(int value)`

    - ### Methods inherited from class org.opencv.video.BackgroundSubtractor

      `apply, apply, getBackgroundImage`

    - ### Methods inherited from class org.opencv.core.Algorithm

      `clear, empty, getDefaultName, getNativeObjAddr, save`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### BackgroundSubtractorKNN

          protected BackgroundSubtractorKNN(long addr)

  - ### Method Detail

    - #### __fromPtr__

          public static BackgroundSubtractorKNN __fromPtr__(long addr)

    - #### getDetectShadows

          public boolean getDetectShadows()

    - #### getDist2Threshold

          public double getDist2Threshold()

    - #### getShadowThreshold

          public double getShadowThreshold()

    - #### getHistory

          public int getHistory()

    - #### getNSamples

          public int getNSamples()

    - #### getShadowValue

          public int getShadowValue()

    - #### getkNNSamples

          public int getkNNSamples()

    - #### setDetectShadows

          public void setDetectShadows(boolean detectShadows)

    - #### setDist2Threshold

          public void setDist2Threshold(double _dist2Threshold)

    - #### setHistory

          public void setHistory(int history)

    - #### setNSamples

          public void setNSamples(int _nN)

    - #### setShadowThreshold

          public void setShadowThreshold(double threshold)

    - #### setShadowValue

          public void setShadowValue(int value)

    - #### setkNNSamples

          public void setkNNSamples(int _nkNN)

    - #### finalize

          protected void finalize()
                           throws java.lang.Throwable

      Overrides:
        `finalize` in class `BackgroundSubtractor`
      Throws:
        `java.lang.Throwable`

Generated on Sun Apr 14 2019 09:17:52 MDT / OpenCV unknown