mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
java: fix testIsSubmatrix test
This commit is contained in:
parent
a936cb087e
commit
d65df72754
@ -494,7 +494,7 @@ public class MatTest extends OpenCVTestCase {
|
|||||||
|
|
||||||
public void testIsSubmatrix() {
|
public void testIsSubmatrix() {
|
||||||
assertFalse(gray0.isSubmatrix());
|
assertFalse(gray0.isSubmatrix());
|
||||||
Mat subMat = gray0.submat(0, 0, gray0.rows() / 2, gray0.cols() / 2);
|
Mat subMat = gray0.submat(0, gray0.rows() / 2, 0, gray0.cols() / 2);
|
||||||
assertTrue(subMat.isSubmatrix());
|
assertTrue(subMat.isSubmatrix());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user