提交 f59d96cd 编写于 作者: A Andrey Pavlenko

updating inaccurate test (Mat step can be more than width)

上级 f3be3493
......@@ -708,10 +708,10 @@ public class MatTest extends OpenCVTestCase {
Mat roi = rgba0.submat(3, 5, 7, 10);
Mat m = roi.clone();
assertEquals(rgba0.channels() * rgba0.cols(), roi.step1(0));
assertTrue(rgba0.channels() * rgba0.cols() <= roi.step1(0));
assertEquals(rgba0.channels(), roi.step1(1));
assertEquals(rgba0.channels() * (10 - 7), m.step1(0));
assertEquals(rgba0.channels(), m.step1(1));
assertTrue(m.channels() * (10 - 7) <= m.step1(0));
assertEquals(m.channels(), m.step1(1));
}
public void testSubmatIntIntIntInt() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册