Java API: tests are updated after randu/randn args types changes
This commit is contained in:
parent
96ca253a00
commit
36a5b6e215
@ -92,7 +92,7 @@ public class OpenCVTestCase extends TestCase {
|
||||
gray_16s_1024 = new Mat(matSize, matSize, CvType.CV_16S, new Scalar(1024));
|
||||
|
||||
grayRnd = new Mat(matSize, matSize, CvType.CV_8U);
|
||||
Core.randu(grayRnd, new Scalar(0), new Scalar(256));
|
||||
Core.randu(grayRnd, 0, 256);
|
||||
|
||||
gray0_32f = new Mat(matSize, matSize, CvType.CV_32F, new Scalar(0.0));
|
||||
gray1_32f = new Mat(matSize, matSize, CvType.CV_32F, new Scalar(1.0));
|
||||
@ -103,7 +103,7 @@ public class OpenCVTestCase extends TestCase {
|
||||
grayE_32f = new Mat(matSize, matSize, CvType.CV_32F);
|
||||
grayE_32f = Mat.eye(matSize, matSize, CvType.CV_32FC1);
|
||||
grayRnd_32f = new Mat(matSize, matSize, CvType.CV_32F);
|
||||
Core.randu(grayRnd_32f, new Scalar(0), new Scalar(256));
|
||||
Core.randu(grayRnd_32f, 0, 256);
|
||||
|
||||
gray0_32f_1d = new Mat(1, matSize, CvType.CV_32F, new Scalar(0.0));
|
||||
|
||||
|
@ -1156,7 +1156,7 @@ public class coreTest extends OpenCVTestCase {
|
||||
public void testPerspectiveTransform() {
|
||||
Mat src = new Mat(matSize, matSize, CvType.CV_32FC2);
|
||||
|
||||
Core.randu(src, new Scalar(0), new Scalar(256));
|
||||
Core.randu(src, 0, 256);
|
||||
|
||||
//FIXME: use Mat.diag
|
||||
Mat transformMatrix = Mat.eye(3, 3, CvType.CV_32F);
|
||||
@ -1169,7 +1169,7 @@ public class coreTest extends OpenCVTestCase {
|
||||
public void testPerspectiveTransform3D() {
|
||||
Mat src = new Mat(matSize, matSize, CvType.CV_32FC3);
|
||||
|
||||
Core.randu(src, new Scalar(0), new Scalar(256));
|
||||
Core.randu(src, 0, 256);
|
||||
|
||||
Mat transformMatrix = Mat.eye(4, 4, CvType.CV_32F);
|
||||
|
||||
@ -1304,7 +1304,7 @@ public class coreTest extends OpenCVTestCase {
|
||||
|
||||
public void testRandn() {
|
||||
assertTrue(0 == Core.countNonZero(gray0));
|
||||
Core.randn(gray0, new Scalar(0), new Scalar(256));
|
||||
Core.randn(gray0, 0, 256);
|
||||
assertTrue(0 != Core.countNonZero(gray0));
|
||||
}
|
||||
|
||||
@ -1318,7 +1318,7 @@ public class coreTest extends OpenCVTestCase {
|
||||
|
||||
public void testRandu() {
|
||||
assertTrue(0 == Core.countNonZero(gray0));
|
||||
Core.randu(gray0, new Scalar(0), new Scalar(256));
|
||||
Core.randu(gray0, 0, 256);
|
||||
assertTrue(0 != Core.countNonZero(gray0));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user