Home
last modified time | relevance | path

Searched refs:matSize (Results 1 – 21 of 21) sorted by relevance

/external/opencv3/modules/calib3d/misc/java/test/
DCalib3dTest.java361 Mat disparity = new Mat(matSize, matSize, CvType.CV_32F); in testReprojectImageTo3DMatMatMat()
363 float[] disp = new float[matSize * matSize]; in testReprojectImageTo3DMatMatMat()
364 for (int i = 0; i < matSize; i++) in testReprojectImageTo3DMatMatMat()
365 for (int j = 0; j < matSize; j++) in testReprojectImageTo3DMatMatMat()
366 disp[i * matSize + j] = i - j; in testReprojectImageTo3DMatMatMat()
374 assertEquals(matSize, _3dPoints.rows()); in testReprojectImageTo3DMatMatMat()
375 assertEquals(matSize, _3dPoints.cols()); in testReprojectImageTo3DMatMatMat()
377 truth = new Mat(matSize, matSize, CvType.CV_32FC3); in testReprojectImageTo3DMatMatMat()
379 float[] _truth = new float[matSize * matSize * 3]; in testReprojectImageTo3DMatMatMat()
380 for (int i = 0; i < matSize; i++) in testReprojectImageTo3DMatMatMat()
[all …]
/external/opencv3/modules/java/android_test/src/org/opencv/test/
DOpenCVTestCase.java34 protected static final int matSize = 10; field in OpenCVTestCase
104 gray0 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(0)); in setUp()
105 gray1 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(1)); in setUp()
106 gray2 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(2)); in setUp()
107 gray3 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(3)); in setUp()
108 gray9 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(9)); in setUp()
109 gray127 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(127)); in setUp()
110 gray128 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(128)); in setUp()
111 gray255 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in setUp()
113 grayRnd = new Mat(matSize, matSize, CvType.CV_8U); in setUp()
[all …]
/external/opencv3/modules/java/pure_test/src/org/opencv/test/
DOpenCVTestCase.java36 protected static final int matSize = 10; field in OpenCVTestCase
134 gray0 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(0)); in setUp()
135 gray1 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(1)); in setUp()
136 gray2 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(2)); in setUp()
137 gray3 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(3)); in setUp()
138 gray9 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(9)); in setUp()
139 gray127 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(127)); in setUp()
140 gray128 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(128)); in setUp()
141 gray255 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in setUp()
143 grayRnd = new Mat(matSize, matSize, CvType.CV_8U); in setUp()
[all …]
/external/opencv3/modules/features2d/misc/java/test/
DSURFFeatureDetectorTest.java24 int matSize; field in SURFFeatureDetectorTest
28 Mat mask = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in getMaskImg()
29 Mat right = mask.submat(0, matSize, matSize / 2, matSize); in getMaskImg()
35 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in getTestImg()
36 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1… in getTestImg()
37 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1… in getTestImg()
58 matSize = 100; in setUp()
DBruteForceL1DescriptorMatcherTest.java25 int matSize; field in BruteForceL1DescriptorMatcherTest
56 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
57 …Imgproc.line(cross, new Point(30, matSize / 2), new Point(matSize - 31, matSize / 2), new Scalar(1…
58 …Imgproc.line(cross, new Point(matSize / 2, 30), new Point(matSize / 2, matSize - 31), new Scalar(1…
76 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
77 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1…
78 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1…
86 matSize = 100;
DBruteForceSL2DescriptorMatcherTest.java25 int matSize; field in BruteForceSL2DescriptorMatcherTest
61 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
62 …Imgproc.line(cross, new Point(30, matSize / 2), new Point(matSize - 31, matSize / 2), new Scalar(1…
63 …Imgproc.line(cross, new Point(matSize / 2, 30), new Point(matSize / 2, matSize - 31), new Scalar(1…
81 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
82 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1…
83 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1…
91 matSize = 100;
DFlannBasedDescriptorMatcherTest.java99 int matSize; field in FlannBasedDescriptorMatcherTest
130 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
131 …Imgproc.line(cross, new Point(30, matSize / 2), new Point(matSize - 31, matSize / 2), new Scalar(1…
132 …Imgproc.line(cross, new Point(matSize / 2, 30), new Point(matSize / 2, matSize - 31), new Scalar(1…
150 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
151 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1…
152 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1…
160 matSize = 100;
DBRIEFDescriptorExtractorTest.java18 int matSize; field in BRIEFDescriptorExtractorTest
21 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in getTestImg()
22 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1… in getTestImg()
23 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1… in getTestImg()
32 matSize = 100; in setUp()
DSIFTDescriptorExtractorTest.java19 int matSize; field in SIFTDescriptorExtractorTest
23 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in getTestImg()
24 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1… in getTestImg()
25 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1… in getTestImg()
35 matSize = 100; in setUp()
DSURFDescriptorExtractorTest.java18 int matSize; field in SURFDescriptorExtractorTest
21 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in getTestImg()
22 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1… in getTestImg()
23 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1… in getTestImg()
37 matSize = 100; in setUp()
DBruteForceDescriptorMatcherTest.java26 int matSize; field in BruteForceDescriptorMatcherTest
56 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
57 …Imgproc.line(cross, new Point(30, matSize / 2), new Point(matSize - 31, matSize / 2), new Scalar(1…
58 …Imgproc.line(cross, new Point(matSize / 2, 30), new Point(matSize / 2, matSize - 31), new Scalar(1…
76 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
77 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1…
78 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1…
86 matSize = 100;
DORBDescriptorExtractorTest.java18 int matSize; field in ORBDescriptorExtractorTest
26 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in getTestImg()
27 …Imgproc.line(cross, new Point(20, matSize / 2), new Point(matSize - 21, matSize / 2), new Scalar(1… in getTestImg()
28 …Imgproc.line(cross, new Point(matSize / 2, 20), new Point(matSize / 2, matSize - 21), new Scalar(1… in getTestImg()
37 matSize = 100; in setUp()
DSTARFeatureDetectorTest.java20 int matSize; field in STARFeatureDetectorTest
24 Mat mask = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in getMaskImg()
25 Mat right = mask.submat(0, matSize, matSize / 2, matSize); in getMaskImg()
32 int center = matSize / 2; in getTestImg()
36 Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); in getTestImg()
48 matSize = 200; in setUp()
DBruteForceHammingLUTDescriptorMatcherTest.java24 int matSize; field in BruteForceHammingLUTDescriptorMatcherTest
40 Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
41 … Imgproc.line(img, new Point(40, matSize - 40), new Point(matSize - 50, 50), new Scalar(0), 8);
63 Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
64 … Imgproc.line(img, new Point(40, 40), new Point(matSize - 40, matSize - 40), new Scalar(0), 8);
71 matSize = 100;
DBruteForceHammingDescriptorMatcherTest.java25 int matSize; field in BruteForceHammingDescriptorMatcherTest
41 Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
42 … Imgproc.line(img, new Point(40, matSize - 40), new Point(matSize - 50, 50), new Scalar(0), 8);
64 Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255));
65 … Imgproc.line(img, new Point(40, 40), new Point(matSize - 40, matSize - 40), new Scalar(0), 8);
72 matSize = 100;
/external/opencv3/modules/core/misc/java/test/
DRotatedRectTest.java19 center = new Point(matSize / 2, matSize / 2); in setUp()
20 size = new Size(matSize / 4, matSize / 2); in setUp()
25 size = new Size(matSize / 2, matSize / 2); in testBoundingRect()
53 Point center2 = new Point(matSize / 3, matSize / 1.5); in testEqualsObject()
54 Size size2 = new Size(matSize / 2, matSize / 4); in testEqualsObject()
DMatTest.java123 assertEquals(matSize, gray0.cols()); in testCols()
129 truth = new Mat(matSize, matSize, CvType.CV_32F, new Scalar(255)); in testConvertToMatInt()
136 truth = new Mat(matSize, matSize, CvType.CV_16U, new Scalar(4)); in testConvertToMatIntDouble()
143 truth = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(4)); in testConvertToMatIntDoubleDouble()
220 Mat diagVector = new Mat(matSize, 1, CvType.CV_32F, new Scalar(1)); in testDiagMat()
632 dst = Mat.ones(matSize, matSize, CvType.CV_32F); in testOnesIntIntInt()
634 truth = new Mat(matSize, matSize, CvType.CV_32F, new Scalar(1)); in testOnesIntIntInt()
839 assertEquals(matSize, gray0.rows()); in testRows()
899 assertEquals(new Size(matSize, matSize), gray0.size()); in testSize()
905 assertEquals(matSize * CvType.channels(CvType.CV_8U), gray0.step1()); in testStep1()
[all …]
DCoreTest.java107 Mat covar = new Mat(matSize, matSize, CvType.CV_64FC1); in testCalcCovarMatrixMatMatMatInt()
108 Mat mean = new Mat(1, matSize, CvType.CV_64FC1); in testCalcCovarMatrixMatMatMatInt()
117 Mat covar = new Mat(matSize, matSize, CvType.CV_32F); in testCalcCovarMatrixMatMatMatIntInt()
118 Mat mean = new Mat(1, matSize, CvType.CV_32F); in testCalcCovarMatrixMatMatMatIntInt()
470 int matSize = 10; in testFillPolyMatListOfListOfPointScalar() local
471 Mat gray0 = Mat.zeros(matSize, matSize, CvType.CV_8U); in testFillPolyMatListOfListOfPointScalar()
940 Mat covar = new Mat(matSize, matSize, CvType.CV_32F); in testMahalanobis()
941 Mat mean = new Mat(1, matSize, CvType.CV_32F); in testMahalanobis()
1402 Mat src = new Mat(matSize, matSize, CvType.CV_32FC2); in testPerspectiveTransform()
1411 Mat src = new Mat(matSize, matSize, CvType.CV_32FC3); in testPerspectiveTransform3D()
[all …]
/external/deqp/modules/gles2/functional/
Des2fShaderIndexingTests.cpp840 int matSize = getDataTypeMatrixNumRows(varType); in createMatrixSubscriptCase() local
841 const char* matSizeName = getIntUniformName(matSize); in createMatrixSubscriptCase()
842 DataType vecType = getDataTypeFloatVec(matSize); in createMatrixSubscriptCase()
861 if (matSize >= 2) op << ", ui_one"; in createMatrixSubscriptCase()
862 if (matSize >= 3) op << ", ui_two"; in createMatrixSubscriptCase()
863 if (matSize >= 4) op << ", ui_three"; in createMatrixSubscriptCase()
889 if (matSize >= 2) op << " tmp[1] = ${VEC_TYPE}(coords.yzwx) * 0.5;\n"; in createMatrixSubscriptCase()
890 if (matSize >= 3) op << " tmp[2] = ${VEC_TYPE}(coords.zwxy) * 0.25;\n"; in createMatrixSubscriptCase()
891 if (matSize >= 4) op << " tmp[3] = ${VEC_TYPE}(coords.wxyz) * 0.125;\n"; in createMatrixSubscriptCase()
896 if (matSize >= 2) op << " tmp[ui_one] = ${VEC_TYPE}(coords.yzwx) * 0.5;\n"; in createMatrixSubscriptCase()
[all …]
/external/opencv3/modules/imgproc/misc/java/test/
DImgprocTest.java508 truth = new Mat(matSize, matSize, CvType.CV_32FC1, new Scalar(0)); in testCornerHarrisMatMatIntIntDouble()
520 truth = new Mat(matSize, matSize, CvType.CV_32FC1, new Scalar(0)); in testCornerHarrisMatMatIntIntDoubleInt()
544 truth = new Mat(matSize, matSize, CvType.CV_32FC1, new Scalar(0)); in testCornerMinEigenValMatMatInt()
583 Mat img = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(128)); in testCornerSubPix()
818 Mat mask = new Mat(matSize + 2, matSize + 2, CvType.CV_8U, new Scalar(0)); in testFloodFillMatMatPointScalar()
820 Imgproc.circle(mask, new Point(matSize / 2 + 1, matSize / 2 + 1), 3, new Scalar(2)); in testFloodFillMatMatPointScalar()
822 … int retval = Imgproc.floodFill(img, mask, new Point(matSize / 2, matSize / 2), new Scalar(1)); in testFloodFillMatMatPointScalar()
825 Imgproc.circle(mask, new Point(matSize / 2 + 1, matSize / 2 + 1), 3, new Scalar(0)); in testFloodFillMatMatPointScalar()
826 assertEquals(retval + 4 * (matSize + 1), Core.countNonZero(mask)); in testFloodFillMatMatPointScalar()
827 assertMatEqual(mask.submat(1, matSize + 1, 1, matSize + 1), img); in testFloodFillMatMatPointScalar()
[all …]
/external/opencv3/modules/photo/misc/java/test/
DPhotoTest.java13 Point p = new Point(matSize / 2, matSize / 2); in testInpaint()