Terms and conditions
Preamble:
This Agreement, signed on Jun 10, 2012 [hereinafter: Effective Date] governs the relationship between the Enduser, a private person, (hereinafter: Licensee) and Paul N...
If you think the Android project Operation-Valkyrie listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
Java Source Code
//
// This file is auto-generated. Please don't modify it!
////www.java2s.compackage org.opencv.video;
import org.opencv.core.Algorithm;
import org.opencv.core.Mat;
// C++: class BackgroundSubtractor
/**
* <p>Base class for background/foreground segmentation.</p>
*
* <p>The class is only used to define the common interface for the whole family of
* background/foreground segmentation algorithms.</p>
*
* @see <a href="http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#backgroundsubtractor">org.opencv.video.BackgroundSubtractor : public Algorithm</a>
*/publicclass BackgroundSubtractor extends Algorithm {
protected BackgroundSubtractor(long addr) { super(addr); }
//
// C++: void BackgroundSubtractor::operator ()(Mat image, Mat& fgmask, double learningRate = 0)
//
/**
* <p>Computes a foreground mask.</p>
*
* @param image Next video frame.
* @param fgmask The output foreground mask as an 8-bit binary image.
* @param learningRate a learningRate
*
* @see <a href="http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#backgroundsubtractor-operator">org.opencv.video.BackgroundSubtractor.operator()</a>
*/publicvoid apply(Mat image, Mat fgmask, double learningRate)
{
apply_0(nativeObj, image.nativeObj, fgmask.nativeObj, learningRate);
return;
}
/**
* <p>Computes a foreground mask.</p>
*
* @param image Next video frame.
* @param fgmask The output foreground mask as an 8-bit binary image.
*
* @see <a href="http://docs.opencv.org/modules/video/doc/motion_analysis_and_object_tracking.html#backgroundsubtractor-operator">org.opencv.video.BackgroundSubtractor.operator()</a>
*/publicvoid apply(Mat image, Mat fgmask)
{
apply_1(nativeObj, image.nativeObj, fgmask.nativeObj);
return;
}
@Override
protectedvoid finalize() throws Throwable {
delete(nativeObj);
}
//
// native stuff
//
static { System.loadLibrary("opencv_java"); }
// C++: void BackgroundSubtractor::operator ()(Mat image, Mat& fgmask, double learningRate = 0)
privatestaticnativevoid apply_0(long nativeObj, long image_nativeObj, long fgmask_nativeObj, double learningRate);
privatestaticnativevoid apply_1(long nativeObj, long image_nativeObj, long fgmask_nativeObj);
// native support for java finalize()
privatestaticnativevoid delete(long nativeObj);
}