001
002//
003// This file is auto-generated. Please don't modify it!
004//
005package org.opencv.video;
006
007
008
009// C++: class BackgroundSubtractorKNN
010//javadoc: BackgroundSubtractorKNN
011public class BackgroundSubtractorKNN extends BackgroundSubtractor {
012
013    protected BackgroundSubtractorKNN(long addr) { super(addr); }
014
015
016    //
017    // C++:  bool getDetectShadows()
018    //
019
020    //javadoc: BackgroundSubtractorKNN::getDetectShadows()
021    public  boolean getDetectShadows()
022    {
023        
024        boolean retVal = getDetectShadows_0(nativeObj);
025        
026        return retVal;
027    }
028
029
030    //
031    // C++:  double getDist2Threshold()
032    //
033
034    //javadoc: BackgroundSubtractorKNN::getDist2Threshold()
035    public  double getDist2Threshold()
036    {
037        
038        double retVal = getDist2Threshold_0(nativeObj);
039        
040        return retVal;
041    }
042
043
044    //
045    // C++:  double getShadowThreshold()
046    //
047
048    //javadoc: BackgroundSubtractorKNN::getShadowThreshold()
049    public  double getShadowThreshold()
050    {
051        
052        double retVal = getShadowThreshold_0(nativeObj);
053        
054        return retVal;
055    }
056
057
058    //
059    // C++:  int getHistory()
060    //
061
062    //javadoc: BackgroundSubtractorKNN::getHistory()
063    public  int getHistory()
064    {
065        
066        int retVal = getHistory_0(nativeObj);
067        
068        return retVal;
069    }
070
071
072    //
073    // C++:  int getNSamples()
074    //
075
076    //javadoc: BackgroundSubtractorKNN::getNSamples()
077    public  int getNSamples()
078    {
079        
080        int retVal = getNSamples_0(nativeObj);
081        
082        return retVal;
083    }
084
085
086    //
087    // C++:  int getShadowValue()
088    //
089
090    //javadoc: BackgroundSubtractorKNN::getShadowValue()
091    public  int getShadowValue()
092    {
093        
094        int retVal = getShadowValue_0(nativeObj);
095        
096        return retVal;
097    }
098
099
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 setDetectShadows(bool detectShadows)
116    //
117
118    //javadoc: BackgroundSubtractorKNN::setDetectShadows(detectShadows)
119    public  void setDetectShadows(boolean detectShadows)
120    {
121        
122        setDetectShadows_0(nativeObj, detectShadows);
123        
124        return;
125    }
126
127
128    //
129    // C++:  void setDist2Threshold(double _dist2Threshold)
130    //
131
132    //javadoc: BackgroundSubtractorKNN::setDist2Threshold(_dist2Threshold)
133    public  void setDist2Threshold(double _dist2Threshold)
134    {
135        
136        setDist2Threshold_0(nativeObj, _dist2Threshold);
137        
138        return;
139    }
140
141
142    //
143    // C++:  void setHistory(int history)
144    //
145
146    //javadoc: BackgroundSubtractorKNN::setHistory(history)
147    public  void setHistory(int history)
148    {
149        
150        setHistory_0(nativeObj, history);
151        
152        return;
153    }
154
155
156    //
157    // C++:  void setNSamples(int _nN)
158    //
159
160    //javadoc: BackgroundSubtractorKNN::setNSamples(_nN)
161    public  void setNSamples(int _nN)
162    {
163        
164        setNSamples_0(nativeObj, _nN);
165        
166        return;
167    }
168
169
170    //
171    // C++:  void setShadowThreshold(double threshold)
172    //
173
174    //javadoc: BackgroundSubtractorKNN::setShadowThreshold(threshold)
175    public  void setShadowThreshold(double threshold)
176    {
177        
178        setShadowThreshold_0(nativeObj, threshold);
179        
180        return;
181    }
182
183
184    //
185    // C++:  void setShadowValue(int value)
186    //
187
188    //javadoc: BackgroundSubtractorKNN::setShadowValue(value)
189    public  void setShadowValue(int value)
190    {
191        
192        setShadowValue_0(nativeObj, value);
193        
194        return;
195    }
196
197
198    //
199    // C++:  void setkNNSamples(int _nkNN)
200    //
201
202    //javadoc: BackgroundSubtractorKNN::setkNNSamples(_nkNN)
203    public  void setkNNSamples(int _nkNN)
204    {
205        
206        setkNNSamples_0(nativeObj, _nkNN);
207        
208        return;
209    }
210
211
212    @Override
213    protected void finalize() throws Throwable {
214        delete(nativeObj);
215    }
216
217
218
219    // C++:  bool getDetectShadows()
220    private static native boolean getDetectShadows_0(long nativeObj);
221
222    // C++:  double getDist2Threshold()
223    private static native double getDist2Threshold_0(long nativeObj);
224
225    // C++:  double getShadowThreshold()
226    private static native double getShadowThreshold_0(long nativeObj);
227
228    // C++:  int getHistory()
229    private static native int getHistory_0(long nativeObj);
230
231    // C++:  int getNSamples()
232    private static native int getNSamples_0(long nativeObj);
233
234    // C++:  int getShadowValue()
235    private static native int getShadowValue_0(long nativeObj);
236
237    // C++:  int getkNNSamples()
238    private static native int getkNNSamples_0(long nativeObj);
239
240    // C++:  void setDetectShadows(bool detectShadows)
241    private static native void setDetectShadows_0(long nativeObj, boolean detectShadows);
242
243    // C++:  void setDist2Threshold(double _dist2Threshold)
244    private static native void setDist2Threshold_0(long nativeObj, double _dist2Threshold);
245
246    // C++:  void setHistory(int history)
247    private static native void setHistory_0(long nativeObj, int history);
248
249    // C++:  void setNSamples(int _nN)
250    private static native void setNSamples_0(long nativeObj, int _nN);
251
252    // C++:  void setShadowThreshold(double threshold)
253    private static native void setShadowThreshold_0(long nativeObj, double threshold);
254
255    // C++:  void setShadowValue(int value)
256    private static native void setShadowValue_0(long nativeObj, int value);
257
258    // C++:  void setkNNSamples(int _nkNN)
259    private static native void setkNNSamples_0(long nativeObj, int _nkNN);
260
261    // native support for java finalize()
262    private static native void delete(long nativeObj);
263
264}