Home | History | Annotate | Download | only in src
      1 
      2 //
      3 // This file is auto-generated. Please don't modify it!
      4 //
      5 package org.opencv.video;
      6 
      7 
      8 
      9 // C++: class BackgroundSubtractorKNN
     10 //javadoc: BackgroundSubtractorKNN
     11 public class BackgroundSubtractorKNN extends BackgroundSubtractor {
     12 
     13     protected BackgroundSubtractorKNN(long addr) { super(addr); }
     14 
     15 
     16     //
     17     // C++:  int getHistory()
     18     //
     19 
     20     //javadoc: BackgroundSubtractorKNN::getHistory()
     21     public  int getHistory()
     22     {
     23 
     24         int retVal = getHistory_0(nativeObj);
     25 
     26         return retVal;
     27     }
     28 
     29 
     30     //
     31     // C++:  void setHistory(int history)
     32     //
     33 
     34     //javadoc: BackgroundSubtractorKNN::setHistory(history)
     35     public  void setHistory(int history)
     36     {
     37 
     38         setHistory_0(nativeObj, history);
     39 
     40         return;
     41     }
     42 
     43 
     44     //
     45     // C++:  int getNSamples()
     46     //
     47 
     48     //javadoc: BackgroundSubtractorKNN::getNSamples()
     49     public  int getNSamples()
     50     {
     51 
     52         int retVal = getNSamples_0(nativeObj);
     53 
     54         return retVal;
     55     }
     56 
     57 
     58     //
     59     // C++:  void setNSamples(int _nN)
     60     //
     61 
     62     //javadoc: BackgroundSubtractorKNN::setNSamples(_nN)
     63     public  void setNSamples(int _nN)
     64     {
     65 
     66         setNSamples_0(nativeObj, _nN);
     67 
     68         return;
     69     }
     70 
     71 
     72     //
     73     // C++:  double getDist2Threshold()
     74     //
     75 
     76     //javadoc: BackgroundSubtractorKNN::getDist2Threshold()
     77     public  double getDist2Threshold()
     78     {
     79 
     80         double retVal = getDist2Threshold_0(nativeObj);
     81 
     82         return retVal;
     83     }
     84 
     85 
     86     //
     87     // C++:  void setDist2Threshold(double _dist2Threshold)
     88     //
     89 
     90     //javadoc: BackgroundSubtractorKNN::setDist2Threshold(_dist2Threshold)
     91     public  void setDist2Threshold(double _dist2Threshold)
     92     {
     93 
     94         setDist2Threshold_0(nativeObj, _dist2Threshold);
     95 
     96         return;
     97     }
     98 
     99 
    100     //
    101     // C++:  int getkNNSamples()
    102     //
    103 
    104     //javadoc: BackgroundSubtractorKNN::getkNNSamples()
    105     public  int getkNNSamples()
    106     {
    107 
    108         int retVal = getkNNSamples_0(nativeObj);
    109 
    110         return retVal;
    111     }
    112 
    113 
    114     //
    115     // C++:  void setkNNSamples(int _nkNN)
    116     //
    117 
    118     //javadoc: BackgroundSubtractorKNN::setkNNSamples(_nkNN)
    119     public  void setkNNSamples(int _nkNN)
    120     {
    121 
    122         setkNNSamples_0(nativeObj, _nkNN);
    123 
    124         return;
    125     }
    126 
    127 
    128     //
    129     // C++:  bool getDetectShadows()
    130     //
    131 
    132     //javadoc: BackgroundSubtractorKNN::getDetectShadows()
    133     public  boolean getDetectShadows()
    134     {
    135 
    136         boolean retVal = getDetectShadows_0(nativeObj);
    137 
    138         return retVal;
    139     }
    140 
    141 
    142     //
    143     // C++:  void setDetectShadows(bool detectShadows)
    144     //
    145 
    146     //javadoc: BackgroundSubtractorKNN::setDetectShadows(detectShadows)
    147     public  void setDetectShadows(boolean detectShadows)
    148     {
    149 
    150         setDetectShadows_0(nativeObj, detectShadows);
    151 
    152         return;
    153     }
    154 
    155 
    156     //
    157     // C++:  int getShadowValue()
    158     //
    159 
    160     //javadoc: BackgroundSubtractorKNN::getShadowValue()
    161     public  int getShadowValue()
    162     {
    163 
    164         int retVal = getShadowValue_0(nativeObj);
    165 
    166         return retVal;
    167     }
    168 
    169 
    170     //
    171     // C++:  void setShadowValue(int value)
    172     //
    173 
    174     //javadoc: BackgroundSubtractorKNN::setShadowValue(value)
    175     public  void setShadowValue(int value)
    176     {
    177 
    178         setShadowValue_0(nativeObj, value);
    179 
    180         return;
    181     }
    182 
    183 
    184     //
    185     // C++:  double getShadowThreshold()
    186     //
    187 
    188     //javadoc: BackgroundSubtractorKNN::getShadowThreshold()
    189     public  double getShadowThreshold()
    190     {
    191 
    192         double retVal = getShadowThreshold_0(nativeObj);
    193 
    194         return retVal;
    195     }
    196 
    197 
    198     //
    199     // C++:  void setShadowThreshold(double threshold)
    200     //
    201 
    202     //javadoc: BackgroundSubtractorKNN::setShadowThreshold(threshold)
    203     public  void setShadowThreshold(double threshold)
    204     {
    205 
    206         setShadowThreshold_0(nativeObj, threshold);
    207 
    208         return;
    209     }
    210 
    211 
    212     @Override
    213     protected void finalize() throws Throwable {
    214         delete(nativeObj);
    215     }
    216 
    217 
    218 
    219     // C++:  int getHistory()
    220     private static native int getHistory_0(long nativeObj);
    221 
    222     // C++:  void setHistory(int history)
    223     private static native void setHistory_0(long nativeObj, int history);
    224 
    225     // C++:  int getNSamples()
    226     private static native int getNSamples_0(long nativeObj);
    227 
    228     // C++:  void setNSamples(int _nN)
    229     private static native void setNSamples_0(long nativeObj, int _nN);
    230 
    231     // C++:  double getDist2Threshold()
    232     private static native double getDist2Threshold_0(long nativeObj);
    233 
    234     // C++:  void setDist2Threshold(double _dist2Threshold)
    235     private static native void setDist2Threshold_0(long nativeObj, double _dist2Threshold);
    236 
    237     // C++:  int getkNNSamples()
    238     private static native int getkNNSamples_0(long nativeObj);
    239 
    240     // C++:  void setkNNSamples(int _nkNN)
    241     private static native void setkNNSamples_0(long nativeObj, int _nkNN);
    242 
    243     // C++:  bool getDetectShadows()
    244     private static native boolean getDetectShadows_0(long nativeObj);
    245 
    246     // C++:  void setDetectShadows(bool detectShadows)
    247     private static native void setDetectShadows_0(long nativeObj, boolean detectShadows);
    248 
    249     // C++:  int getShadowValue()
    250     private static native int getShadowValue_0(long nativeObj);
    251 
    252     // C++:  void setShadowValue(int value)
    253     private static native void setShadowValue_0(long nativeObj, int value);
    254 
    255     // C++:  double getShadowThreshold()
    256     private static native double getShadowThreshold_0(long nativeObj);
    257 
    258     // C++:  void setShadowThreshold(double threshold)
    259     private static native void setShadowThreshold_0(long nativeObj, double threshold);
    260 
    261     // native support for java finalize()
    262     private static native void delete(long nativeObj);
    263 
    264 }
    265