mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
1.2 KiB
44 lines
1.2 KiB
14 years ago
|
package org.opencv.test.video;
|
||
|
|
||
|
import org.opencv.test.OpenCVTestCase;
|
||
|
|
||
|
public class BackgroundSubtractorMOGTest extends OpenCVTestCase {
|
||
|
|
||
14 years ago
|
public void testApplyMatMat() {
|
||
|
fail("Not yet implemented");
|
||
13 years ago
|
/*
|
||
14 years ago
|
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));
|
||
|
|
||
10 years ago
|
Imgproc.rectangle(rgbLena, bottomRight, topLeft, color, Core.FILLED);
|
||
14 years ago
|
|
||
|
backGroundSubtract.apply(rgbLena, mask);
|
||
|
|
||
|
Mat truth = new Mat(rgbLena.size(), rgbLena.type(), new Scalar(0));
|
||
10 years ago
|
Imgproc.rectangle(truth, bottomRight, topLeft, color, Core.FILLED);
|
||
14 years ago
|
assertMatEqual(truth, rgbLena);
|
||
13 years ago
|
*/
|
||
14 years ago
|
}
|
||
|
|
||
|
public void testApplyMatMatDouble() {
|
||
|
fail("Not yet implemented");
|
||
14 years ago
|
}
|
||
14 years ago
|
|
||
14 years ago
|
public void testBackgroundSubtractorMOG() {
|
||
|
fail("Not yet implemented");
|
||
|
}
|
||
14 years ago
|
|
||
14 years ago
|
public void testBackgroundSubtractorMOGIntIntDouble() {
|
||
|
fail("Not yet implemented");
|
||
|
}
|
||
14 years ago
|
|
||
14 years ago
|
public void testBackgroundSubtractorMOGIntIntDoubleDouble() {
|
||
|
fail("Not yet implemented");
|
||
|
}
|
||
14 years ago
|
|
||
|
}
|