2011-07-26 18:27:51 +08:00
|
|
|
package org.opencv.test.video;
|
|
|
|
|
|
|
|
import org.opencv.test.OpenCVTestCase;
|
|
|
|
|
|
|
|
public class BackgroundSubtractorMOGTest extends OpenCVTestCase {
|
|
|
|
|
2011-08-05 16:39:28 +08:00
|
|
|
public void testApplyMatMat() {
|
|
|
|
fail("Not yet implemented");
|
2012-04-14 05:50:59 +08:00
|
|
|
/*
|
2011-08-10 20:35:22 +08:00
|
|
|
BackgroundSubtractorMOG backGroundSubtract = new BackgroundSubtractorMOG();
|
|
|
|
|
|
|
|
Point bottomRight = new Point(rgbLena.cols() / 2, rgbLena.rows() / 2);
|
|
|
|
Point topLeft = new Point(0, 0);
|
|
|
|
Scalar color = new Scalar(128);
|
|
|
|
Mat mask = new Mat(rgbLena.size(), CvType.CV_16UC3, new Scalar(1));
|
|
|
|
|
2018-08-26 02:50:50 +08:00
|
|
|
Imgproc.rectangle(rgbLena, bottomRight, topLeft, color, Imgproc.FILLED);
|
2011-08-10 20:35:22 +08:00
|
|
|
|
|
|
|
backGroundSubtract.apply(rgbLena, mask);
|
|
|
|
|
|
|
|
Mat truth = new Mat(rgbLena.size(), rgbLena.type(), new Scalar(0));
|
2018-08-26 02:50:50 +08:00
|
|
|
Imgproc.rectangle(truth, bottomRight, topLeft, color, Imgproc.FILLED);
|
2011-08-10 20:35:22 +08:00
|
|
|
assertMatEqual(truth, rgbLena);
|
2012-04-14 05:50:59 +08:00
|
|
|
*/
|
2011-08-05 16:39:28 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
public void testApplyMatMatDouble() {
|
|
|
|
fail("Not yet implemented");
|
2011-08-02 21:47:40 +08:00
|
|
|
}
|
2011-07-26 18:27:51 +08:00
|
|
|
|
2011-08-02 21:47:40 +08:00
|
|
|
public void testBackgroundSubtractorMOG() {
|
|
|
|
fail("Not yet implemented");
|
|
|
|
}
|
2011-07-26 18:27:51 +08:00
|
|
|
|
2011-08-02 21:47:40 +08:00
|
|
|
public void testBackgroundSubtractorMOGIntIntDouble() {
|
|
|
|
fail("Not yet implemented");
|
|
|
|
}
|
2011-07-26 18:27:51 +08:00
|
|
|
|
2011-08-02 21:47:40 +08:00
|
|
|
public void testBackgroundSubtractorMOGIntIntDoubleDouble() {
|
|
|
|
fail("Not yet implemented");
|
|
|
|
}
|
2011-07-26 18:27:51 +08:00
|
|
|
|
|
|
|
}
|