/external/opencv3/modules/core/misc/java/test/ |
CvTypeTest.java | 3 import org.opencv.core.CvType; 9 assertEquals(CvType.CV_8UC4, CvType.makeType(CvType.CV_8U, 4)); 13 assertEquals(CvType.CV_8UC4, CvType.CV_8UC(4)); 17 assertEquals(CvType.CV_8SC4, CvType.CV_8SC(4)); 21 assertEquals(CvType.CV_16UC4, CvType.CV_16UC(4)) [all...] |
MatTest.java | 7 import org.opencv.core.CvType; 48 gray255.assignTo(dst, CvType.CV_32F); 62 assertEquals(2, new Mat(2, 10, CvType.CV_8U).checkVector(10)); 63 assertEquals(2, new Mat(1, 2, CvType.CV_8UC(10)).checkVector(10)); 64 assertEquals(2, new Mat(2, 1, CvType.CV_8UC(10)).checkVector(10)); 65 assertEquals(10, new Mat(1, 10, CvType.CV_8UC2).checkVector(2)); 68 assertTrue(0 > new Mat(10, 1, CvType.CV_8U).checkVector(10)); 69 assertTrue(0 > new Mat(10, 20, CvType.CV_8U).checkVector(10)); 73 assertEquals(2, new Mat(2, 10, CvType.CV_8U).checkVector(10, CvType.CV_8U)) [all...] |
CoreTest.java | 10 import org.opencv.core.CvType; 39 Core.add(gray0, gray1, dst, gray1, CvType.CV_32F); 41 assertEquals(CvType.CV_32F, dst.depth()); 52 Core.addWeighted(gray1, 126.0, gray127, 1.0, 2.0, dst, CvType.CV_32F); 54 assertEquals(CvType.CV_32F, dst.depth()); 107 Mat covar = new Mat(matSize, matSize, CvType.CV_64FC1); 108 Mat mean = new Mat(1, matSize, CvType.CV_64FC1); 117 Mat covar = new Mat(matSize, matSize, CvType.CV_32F); 118 Mat mean = new Mat(1, matSize, CvType.CV_32F); 120 Core.calcCovarMatrix(gray0_32f, covar, mean, Core.COVAR_ROWS | Core.COVAR_NORMAL, CvType.CV_32F) [all...] |
/external/opencv3/samples/java/eclipse/HelloCV/src/ |
Main.java | 2 import org.opencv.core.CvType; 10 Mat m = Mat.eye(3, 3, CvType.CV_8UC1);
|
/external/opencv3/modules/imgproc/misc/java/test/ |
ImgprocTest.java | 8 import org.opencv.core.CvType; 40 Mat src = getMat(CvType.CV_64F, 2); 41 Mat dst = getMat(CvType.CV_64F, 0); 48 assertMatEqual(getMat(CvType.CV_64F, 4), dst2, EPS); 52 Mat src = getMat(CvType.CV_64F, 2); 53 Mat mask = makeMask(getMat(CvType.CV_8U, 1)); 54 Mat dst = getMat(CvType.CV_64F, 0); 60 assertMatEqual(makeMask(getMat(CvType.CV_64F, 2)), dst, EPS); 61 assertMatEqual(makeMask(getMat(CvType.CV_64F, 4), 2), dst2, EPS); 65 Mat src = getMat(CvType.CV_64F, 2) [all...] |
/external/opencv3/modules/calib3d/misc/java/test/ |
Calib3dTest.java | 5 import org.opencv.core.CvType; 31 Mat rvec1 = new Mat(3, 1, CvType.CV_32F); 33 Mat tvec1 = new Mat(3, 1, CvType.CV_32F); 35 Mat rvec2 = new Mat(3, 1, CvType.CV_32F); 37 Mat tvec2 = new Mat(3, 1, CvType.CV_32F); 43 Mat outRvec = new Mat(3, 1, CvType.CV_32F); 45 Mat outTvec = new Mat(3, 1, CvType.CV_32F); 194 Mat img = new Mat(size, size, CvType.CV_8U); 210 assertEquals(CvType.CV_32FC2, centers.type()); 215 Mat img = new Mat(size, size, CvType.CV_8U) [all...] |
/external/opencv3/modules/photo/misc/java/test/ |
PhotoTest.java | 4 import org.opencv.core.CvType; 19 assertMatEqual(getMat(CvType.CV_8U, 255), dst);
|
/external/opencv3/samples/java/ant/src/ |
SimpleSample.java | 3 import org.opencv.core.CvType; 12 Mat m = new Mat(5, 10, CvType.CV_8UC1, new Scalar(0));
|
/external/opencv3/modules/java/common_test/src/org/opencv/test/utils/ |
ConvertersTest.java | 3 import org.opencv.core.CvType; 19 Mat src = new Mat(3, 1, CvType.CV_8SC1); 36 Mat src = new Mat(4, 1, CvType.CV_64FC4); 52 Mat src = new Mat(4, 1, CvType.CV_32FC1); 67 Mat src = new Mat(4, 1, CvType.CV_32SC1); 81 Mat src = new Mat(1, 1, CvType.CV_64FC(7)); 93 // Mat src = new Mat(4, 1, CvType.CV_32SC2); 100 // truth.add(new Mat(2, 1, CvType.CV_32SC1, Scalar.all(2.0))); 101 // truth.add(new Mat(2, 1, CvType.CV_32SC1, Scalar.all(3.0))); 102 // truth.add(new Mat(2, 1, CvType.CV_32SC1, Scalar.all(4.0))) [all...] |
/external/opencv3/modules/core/misc/java/src/java/ |
core+Mat.java | 919 rows() + "*" + cols() + "*" + CvType.typeToString(type()) + 934 if (data == null || data.length % CvType.channels(t) != 0) 939 CvType.channels(t) + ")"); 946 if (data == null || data.length % CvType.channels(t) != 0) 951 CvType.channels(t) + ")"); 952 if (CvType.depth(t) == CvType.CV_32F) { 961 if (data == null || data.length % CvType.channels(t) != 0) 966 CvType.channels(t) + ")"); 967 if (CvType.depth(t) == CvType.CV_32S) [all...] |
core+MatOfByte.java | 8 private static final int _depth = CvType.CV_8U; 40 super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
|
core+MatOfDMatch.java | 10 private static final int _depth = CvType.CV_32F; 42 super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
|
core+MatOfDouble.java | 8 private static final int _depth = CvType.CV_64F; 40 super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
|
core+MatOfFloat.java | 8 private static final int _depth = CvType.CV_32F; 40 super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
|
core+MatOfFloat4.java | 8 private static final int _depth = CvType.CV_32F; 40 super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
|
core+MatOfFloat6.java | 8 private static final int _depth = CvType.CV_32F; 40 super.create(elemNumber, 1, CvType.makeType(_depth, _channels));
|
/external/opencv3/modules/java/android_test/src/org/opencv/test/ |
OpenCVTestCase.java | 15 import org.opencv.core.CvType; 104 gray0 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(0)); 105 gray1 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(1)); 106 gray2 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(2)); 107 gray3 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(3)); 108 gray9 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(9)); 109 gray127 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(127)); 110 gray128 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(128)); 111 gray255 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); 113 grayRnd = new Mat(matSize, matSize, CvType.CV_8U) [all...] |
/external/opencv3/modules/java/pure_test/src/org/opencv/test/ |
OpenCVTestCase.java | 19 import org.opencv.core.CvType; 134 gray0 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(0)); 135 gray1 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(1)); 136 gray2 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(2)); 137 gray3 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(3)); 138 gray9 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(9)); 139 gray127 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(127)); 140 gray128 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(128)); 141 gray255 = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); 143 grayRnd = new Mat(matSize, matSize, CvType.CV_8U) [all...] |
/external/opencv3/modules/java/generator/src/java/ |
utils+Converters.java | 6 import org.opencv.core.CvType; 23 return vector_Point_to_Mat(pts, CvType.CV_32S); 27 return vector_Point_to_Mat(pts, CvType.CV_32F); 31 return vector_Point_to_Mat(pts, CvType.CV_64F); 39 case CvType.CV_32S: { 40 res = new Mat(count, 1, CvType.CV_32SC2); 51 case CvType.CV_32F: { 52 res = new Mat(count, 1, CvType.CV_32FC2); 63 case CvType.CV_64F: { 64 res = new Mat(count, 1, CvType.CV_64FC2) [all...] |
/external/opencv3/modules/features2d/misc/java/test/ |
BRIEFDescriptorExtractorTest.java | 4 import org.opencv.core.CvType; 21 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); 47 Mat truth = new Mat(1, 32, CvType.CV_8UC1) { 68 assertEquals(CvType.CV_8U, extractor.descriptorType());
|
SIFTDescriptorExtractorTest.java | 4 import org.opencv.core.CvType; 23 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); 36 truth = new Mat(1, 128, CvType.CV_32FC1) { 74 assertEquals(CvType.CV_32F, extractor.descriptorType());
|
SURFDescriptorExtractorTest.java | 4 import org.opencv.core.CvType; 21 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); 52 Mat truth = new Mat(1, 128, CvType.CV_32FC1) { 84 assertEquals(CvType.CV_32F, extractor.descriptorType());
|
ORBDescriptorExtractorTest.java | 4 import org.opencv.core.CvType; 26 Mat cross = new Mat(matSize, matSize, CvType.CV_8U, new Scalar(255)); 52 Mat truth = new Mat(1, 32, CvType.CV_8UC1) { 70 assertEquals(CvType.CV_8U, extractor.descriptorType()); 89 Mat truth = new Mat(1, 32, CvType.CV_8UC1) {
|
/external/opencv3/modules/flann/include/opencv2/ |
flann.hpp | 75 template <typename T> struct CvType {}; 76 template <> struct CvType<unsigned char> { static int type() { return CV_8U; } }; 77 template <> struct CvType<char> { static int type() { return CV_8S; } }; 78 template <> struct CvType<unsigned short> { static int type() { return CV_16U; } }; 79 template <> struct CvType<short> { static int type() { return CV_16S; } }; 80 template <> struct CvType<int> { static int type() { return CV_32S; } }; 81 template <> struct CvType<float> { static int type() { return CV_32F; } }; 82 template <> struct CvType<double> { static int type() { return CV_64F; } }; 253 CV_Assert(dataset.type() == CvType<ElementType>::type()); 286 CV_Assert(queries.type() == CvType<ElementType>::type()) [all...] |
/external/opencv3/samples/android/tutorial-2-mixedprocessing/src/org/opencv/samples/tutorial2/ |
Tutorial2Activity.java | 7 import org.opencv.core.CvType; 116 mRgba = new Mat(height, width, CvType.CV_8UC4); 117 mIntermediateMat = new Mat(height, width, CvType.CV_8UC4); 118 mGray = new Mat(height, width, CvType.CV_8UC1);
|