diff --git a/modules/java/android_test/.classpath b/modules/java/android_test/.classpath
index cad2710c14..acecb835a9 100644
--- a/modules/java/android_test/.classpath
+++ b/modules/java/android_test/.classpath
@@ -3,7 +3,7 @@
-
+
diff --git a/modules/java/android_test/src/org/opencv/test/MatTest.java b/modules/java/android_test/src/org/opencv/test/MatTest.java
index 0fa2058ebf..40a43ebe68 100644
--- a/modules/java/android_test/src/org/opencv/test/MatTest.java
+++ b/modules/java/android_test/src/org/opencv/test/MatTest.java
@@ -8,35 +8,39 @@ public class MatTest extends OpenCVTestCase {
super.test_1("Mat");
}
- public void testFinalize() {
+ public void testChannels() {
fail("Not yet implemented");
}
- public void testMatLong() {
+ public void testClone() {
fail("Not yet implemented");
}
- public void testMatIntIntCvType() {
- Mat gray = new Mat(1, 1, Mat.CvType.CV_8UC1);
- assertFalse(gray.empty());
-
- Mat rgb = new Mat(1, 1, Mat.CvType.CV_8UC3);
- assertFalse(rgb.empty());
+ public void testCol() {
+ fail("Not yet implemented");
}
- public void testMatIntIntCvTypeDoubleDoubleDoubleDouble() {
+ public void testColRange() {
fail("Not yet implemented");
}
- public void testMatIntIntCvTypeDoubleDoubleDouble() {
+ public void testCols() {
+ assertEquals(matSize, gray0.rows());
+ }
+
+ public void testCopyTo() {
fail("Not yet implemented");
}
- public void testMatIntIntCvTypeDoubleDouble() {
+ public void testCross() {
fail("Not yet implemented");
}
- public void testMatIntIntCvTypeDouble() {
+ public void testDataAddr() {
+ fail("Not yet implemented");
+ }
+
+ public void testDepth() {
fail("Not yet implemented");
}
@@ -44,51 +48,51 @@ public class MatTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testToString() {
+ public void testDot() {
fail("Not yet implemented");
}
- public void testEmpty() {
+ public void testElemSize() {
fail("Not yet implemented");
}
- public void testType() {
+ public void testEmpty() {
fail("Not yet implemented");
}
- public void testDepth() {
+ public void testFinalize() {
fail("Not yet implemented");
}
- public void testChannels() {
+ public void testGetIntIntByteArray() {
fail("Not yet implemented");
}
- public void testElemSize() {
+ public void testGetIntIntDoubleArray() {
fail("Not yet implemented");
}
- public void testRows() {
- assertEquals(matSize, gray0.rows());
+ public void testGetIntIntFloatArray() {
+ fail("Not yet implemented");
}
- public void testHeight() {
+ public void testGetIntIntIntArray() {
fail("Not yet implemented");
}
- public void testCols() {
- assertEquals(matSize, gray0.rows());
+ public void testGetIntIntShortArray() {
+ fail("Not yet implemented");
}
- public void testWidth() {
+ public void testGetNativeObjAddr() {
fail("Not yet implemented");
}
- public void testTotal() {
+ public void testHeight() {
fail("Not yet implemented");
}
- public void testDataAddr() {
+ public void testInv() {
fail("Not yet implemented");
}
@@ -100,27 +104,35 @@ public class MatTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testSubmat() {
+ public void testMatIntIntCvType() {
+ Mat gray = new Mat(1, 1, Mat.CvType.CV_8UC1);
+ assertFalse(gray.empty());
+
+ Mat rgb = new Mat(1, 1, Mat.CvType.CV_8UC3);
+ assertFalse(rgb.empty());
+ }
+
+ public void testMatIntIntCvTypeDouble() {
fail("Not yet implemented");
}
- public void testRowRange() {
+ public void testMatIntIntCvTypeDoubleDouble() {
fail("Not yet implemented");
}
- public void testRow() {
+ public void testMatIntIntCvTypeDoubleDoubleDouble() {
fail("Not yet implemented");
}
- public void testColRange() {
+ public void testMatIntIntCvTypeDoubleDoubleDoubleDouble() {
fail("Not yet implemented");
}
- public void testCol() {
+ public void testMatLong() {
fail("Not yet implemented");
}
- public void testClone() {
+ public void testPutIntIntByteArray() {
fail("Not yet implemented");
}
@@ -140,31 +152,23 @@ public class MatTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testPutIntIntByteArray() {
- fail("Not yet implemented");
- }
-
- public void testGetIntIntByteArray() {
- fail("Not yet implemented");
- }
-
- public void testGetIntIntShortArray() {
+ public void testRow() {
fail("Not yet implemented");
}
- public void testGetIntIntIntArray() {
+ public void testRowRange() {
fail("Not yet implemented");
}
- public void testGetIntIntFloatArray() {
- fail("Not yet implemented");
+ public void testRows() {
+ assertEquals(matSize, gray0.rows());
}
- public void testGetIntIntDoubleArray() {
+ public void testSetToDouble() {
fail("Not yet implemented");
}
- public void testSetToDoubleDoubleDoubleDouble() {
+ public void testSetToDoubleDouble() {
fail("Not yet implemented");
}
@@ -172,31 +176,27 @@ public class MatTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testSetToDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testSetToDouble() {
+ public void testSetToDoubleDoubleDoubleDouble() {
fail("Not yet implemented");
}
- public void testCopyTo() {
+ public void testSubmat() {
fail("Not yet implemented");
}
- public void testDot() {
+ public void testToString() {
fail("Not yet implemented");
}
- public void testCross() {
+ public void testTotal() {
fail("Not yet implemented");
}
- public void testInv() {
+ public void testType() {
fail("Not yet implemented");
}
- public void testGetNativeObjAddr() {
+ public void testWidth() {
fail("Not yet implemented");
}
}
diff --git a/modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java b/modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java
index 44efd34c73..6aa74021a8 100644
--- a/modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java
+++ b/modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java
@@ -1,26 +1,21 @@
package org.opencv.test;
-import java.io.FileOutputStream;
+import junit.framework.TestCase;
import org.opencv.Mat;
import org.opencv.core;
import org.opencv.highgui;
-import android.content.Context;
-import android.graphics.Bitmap;
-import android.graphics.BitmapFactory;
-import android.graphics.Bitmap.CompressFormat;
-import android.test.AndroidTestCase;
-import android.util.Log;
-public class OpenCVTestCase extends AndroidTestCase {
-
- static String TAG = "OpenCV_JavaAPI_Tests";
+public class OpenCVTestCase extends TestCase {
+
static String LENA = "/data/data/org.opencv.test/files/lena.jpg";
static int matSize = 10;
- //Naming notation: channels_[type]_[dimension]_value
+ static Mat dst;
+
+ //Naming notation: _[depth]_[dimensions]_value
//examples: gray0 - single channel 8U 2d Mat filled with 0
// grayRnd - single channel 8U 2d Mat filled with random numbers
// gray0_32f_1d - refactor ;)
@@ -31,31 +26,30 @@ public class OpenCVTestCase extends AndroidTestCase {
static Mat gray3;
static Mat gray127;
static Mat gray128;
- static Mat gray255;
-
- static Mat gray255_32f;
-
- static Mat grayRnd;
- static Mat grayRnd_32f;
+ static Mat gray255;
+ static Mat grayRnd;
+ static Mat gray0_32f;
+ static Mat gray255_32f;
static Mat grayE_32f;
-
- static Mat gray0_32f;
+ static Mat grayRnd_32f;
+
static Mat gray0_32f_1d;
static Mat gray0_64f;
static Mat gray0_64f_1d;
- static Mat rgba0;
- static Mat rgba128;
-
static Mat rgbLena;
-
- static Mat dst;
+
+ static Mat rgba0;
+ static Mat rgba128;
@Override
protected void setUp() throws Exception {
super.setUp();
+
+ dst = new Mat();
+ assertTrue(dst.empty());
gray0 = new Mat(matSize, matSize, Mat.CvType.CV_8UC1); gray0.setTo(0.0);
gray1 = new Mat(matSize, matSize, Mat.CvType.CV_8UC1); gray1.setTo(1.0);
@@ -63,41 +57,26 @@ public class OpenCVTestCase extends AndroidTestCase {
gray3 = new Mat(matSize, matSize, Mat.CvType.CV_8UC1); gray3.setTo(3.0);
gray127 = new Mat(matSize, matSize, Mat.CvType.CV_8UC1); gray127.setTo(127.0);
gray128 = new Mat(matSize, matSize, Mat.CvType.CV_8UC1); gray128.setTo(128.0);
- gray255 = new Mat(matSize, matSize, Mat.CvType.CV_8UC1); gray255.setTo(256.0);
-
- gray255_32f = new Mat(matSize, matSize, Mat.CvType.CV_32FC1); gray255_32f.setTo(255.0);
+ gray255 = new Mat(matSize, matSize, Mat.CvType.CV_8UC1); gray255.setTo(255.0);
- Mat low = new Mat(1, 1, Mat.CvType.CV_16UC1); low.setTo(0);
- Mat high = new Mat(1, 1, Mat.CvType.CV_16UC1); high.setTo(256);
+ Mat low = new Mat(1, 1, Mat.CvType.CV_16UC1, 0.0);
+ Mat high = new Mat(1, 1, Mat.CvType.CV_16UC1, 256.0);
grayRnd = new Mat(matSize, matSize, Mat.CvType.CV_8UC1); core.randu(grayRnd, low, high);
- grayRnd_32f = new Mat(matSize, matSize, Mat.CvType.CV_32FC1); core.randu(grayRnd_32f, low, high);
+ gray0_32f = new Mat(matSize, matSize, Mat.CvType.CV_32FC1); gray0_32f.setTo(0.0);
+ gray255_32f = new Mat(matSize, matSize, Mat.CvType.CV_32FC1); gray255_32f.setTo(255.0);
grayE_32f = new Mat(matSize, matSize, Mat.CvType.CV_32FC1); grayE_32f = Mat.eye(matSize, matSize, Mat.CvType.CV_32FC1);
+ grayRnd_32f = new Mat(matSize, matSize, Mat.CvType.CV_32FC1); core.randu(grayRnd_32f, low, high);
- gray0_32f = new Mat(matSize, matSize, Mat.CvType.CV_32FC1); gray0_32f.setTo(0.0);
gray0_32f_1d = new Mat(1, matSize, Mat.CvType.CV_32FC1); gray0_32f_1d.setTo(0.0);
gray0_64f = new Mat(matSize, matSize, Mat.CvType.CV_64FC1); gray0_64f.setTo(0.0);
gray0_64f_1d = new Mat(1, matSize, Mat.CvType.CV_64FC1); gray0_64f_1d.setTo(0.0);
+ rgbLena = highgui.imread(LENA);
+
rgba0 = new Mat(matSize, matSize, Mat.CvType.CV_8UC4); rgba0.setTo(0, 0, 0, 0);
rgba128 = new Mat(matSize, matSize, Mat.CvType.CV_8UC4); rgba128.setTo(128, 128, 128, 128);
-
- try {
- Bitmap mBitmap = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable.lena);
- FileOutputStream fos = this.getContext().openFileOutput("lena.jpg", Context.MODE_WORLD_READABLE);
- mBitmap.compress(CompressFormat.JPEG, 100, fos);
- fos.flush();
- fos.close();
- }
- catch (Exception e) {
- Log.e(TAG, "Tried to write lena.jpg, but: " + e.toString());
- }
-
- rgbLena = highgui.imread(LENA);
-
- dst = new Mat();
- assertTrue(dst.empty());
}
public static void assertMatEqual(Mat m1, Mat m2) {
@@ -114,8 +93,10 @@ public class OpenCVTestCase extends AndroidTestCase {
}
public void test_1(String label) {
- Log.e(TAG, "================================================");
- Log.e(TAG, "=============== " + label);
- Log.e(TAG, "================================================");
+ utils.Log("================================================");
+ utils.Log("=============== " + label);
+ utils.Log("================================================");
+
+ new utils().ExportLena();
}
}
diff --git a/modules/java/android_test/src/org/opencv/test/coreTest.java b/modules/java/android_test/src/org/opencv/test/coreTest.java
index 5d1aa65347..89aad468ef 100644
--- a/modules/java/android_test/src/org/opencv/test/coreTest.java
+++ b/modules/java/android_test/src/org/opencv/test/coreTest.java
@@ -11,61 +11,22 @@ public class coreTest extends OpenCVTestCase {
super.test_1("CORE");
}
- public void testLUTMatMatMatInt() {
- fail("Not yet implemented");
- }
-
- public void testLUTMatMatMat() {
- Mat lut = new Mat(1, 256, Mat.CvType.CV_8UC1);
-
- lut.setTo(0);
- core.LUT(grayRnd, lut, dst);
- assertMatEqual(gray0, dst);
-
- lut.setTo(255);
- core.LUT(grayRnd, lut, dst);
- assertMatEqual(gray255, dst);
- }
-
- public void testMahalanobis() {
- Mat covar = new Mat(matSize, matSize, Mat.CvType.CV_32FC1);
- Mat mean = new Mat(1, matSize, Mat.CvType.CV_32FC1);
- core.calcCovarMatrix(grayRnd_32f, covar, mean, 8|1, Mat.CvType.CV_32F); //FIXME: CV_COVAR_NORMAL instead of magic numbers
- covar.inv();
-
- Mat line1 = grayRnd_32f.submat(0, 1, 0, grayRnd_32f.cols());
- Mat line2 = grayRnd_32f.submat(1, 2, 0, grayRnd_32f.cols());
-
- double d = 0.0;
- d = core.Mahalanobis(line1, line1, covar);
- assertEquals(0.0, d);
-
- d = core.Mahalanobis(line1, line2, covar);
- assertTrue(d > 0.0);
- }
-
public void testAbsdiff() {
core.absdiff(gray128, gray255, dst);
assertMatEqual(gray127, dst);
}
- public void testAddMatMatMatMatInt() {
- fail("Not yet implemented");
+ public void testAddMatMatMat() {
+ core.add(gray128, gray128, dst);
+ assertMatEqual(gray255, dst);
}
public void testAddMatMatMatMat() {
fail("Not yet implemented");
}
- public void testAddMatMatMat() {
- core.add(gray128, gray128, dst);
- assertMatEqual(gray255, dst);
- }
-
- public void testAddWeightedMatDoubleMatDoubleDoubleMatInt() {
- Mat dst = new Mat();
- core.addWeighted(gray1, 126.0, gray127, 1.0, 2.0, dst, gray255_32f.depth());
- assertTrue(gray255_32f.depth() == dst.depth());
+ public void testAddMatMatMatMatInt() {
+ fail("Not yet implemented");
}
public void testAddWeightedMatDoubleMatDoubleDoubleMat() {
@@ -73,8 +34,9 @@ public class coreTest extends OpenCVTestCase {
assertMatEqual(gray255, dst);
}
- public void testBitwise_andMatMatMatMat() {
- fail("Not yet implemented");
+ public void testAddWeightedMatDoubleMatDoubleDoubleMatInt() {
+ core.addWeighted(gray1, 126.0, gray127, 1.0, 2.0, dst, gray255_32f.depth());
+ assertTrue(core.CV_32F == dst.depth());
}
public void testBitwise_andMatMatMat() {
@@ -82,7 +44,7 @@ public class coreTest extends OpenCVTestCase {
assertMatEqual(gray2, dst);
}
- public void testBitwise_notMatMatMat() {
+ public void testBitwise_andMatMatMatMat() {
fail("Not yet implemented");
}
@@ -90,7 +52,7 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testBitwise_orMatMatMatMat() {
+ public void testBitwise_notMatMatMat() {
fail("Not yet implemented");
}
@@ -98,7 +60,7 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testBitwise_xorMatMatMatMat() {
+ public void testBitwise_orMatMatMatMat() {
fail("Not yet implemented");
}
@@ -106,50 +68,42 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testCalcCovarMatrixMatMatMatIntInt() {
- Mat covar = new Mat(matSize, matSize, Mat.CvType.CV_32FC1);
- Mat mean = new Mat(1, matSize, Mat.CvType.CV_32FC1);
-
- core.calcCovarMatrix(gray0_32f, covar, mean, 8|1, Mat.CvType.CV_32F); //FIXME: CV_COVAR_NORMAL instead of magic numbers
- assertMatEqual(gray0_32f, covar);
- assertMatEqual(gray0_32f_1d, mean);
+ public void testBitwise_xorMatMatMatMat() {
+ fail("Not yet implemented");
}
public void testCalcCovarMatrixMatMatMatInt() {
Mat covar = new Mat(matSize, matSize, Mat.CvType.CV_64FC1);
Mat mean = new Mat(1, matSize, Mat.CvType.CV_64FC1);
- core.calcCovarMatrix(gray0_32f, covar, mean, 8|1); //FIXME: CV_COVAR_NORMAL instead of magic numbers
+ core.calcCovarMatrix(gray0_32f, covar, mean, 8|1); //TODO: CV_COVAR_NORMAL instead of magic numbers
assertMatEqual(gray0_64f, covar);
assertMatEqual(gray0_64f_1d, mean);
}
- public void testCartToPolarMatMatMatMatBoolean() {
- fail("Not yet implemented");
+ public void testCalcCovarMatrixMatMatMatIntInt() {
+ Mat covar = new Mat(matSize, matSize, Mat.CvType.CV_32FC1);
+ Mat mean = new Mat(1, matSize, Mat.CvType.CV_32FC1);
+
+ core.calcCovarMatrix(gray0_32f, covar, mean, 8|1, Mat.CvType.CV_32F); //TODO: CV_COVAR_NORMAL instead of magic numbers
+ assertMatEqual(gray0_32f, covar);
+ assertMatEqual(gray0_32f_1d, mean);
}
public void testCartToPolarMatMatMatMat() {
fail("Not yet implemented");
}
+ public void testCartToPolarMatMatMatMatBoolean() {
+ fail("Not yet implemented");
+ }
+
public void testCheckHardwareSupport() {
//FIXME: do we need this function?
boolean hasFeauture = core.checkHardwareSupport(0);
assertEquals(false, hasFeauture);
}
- public void testCircleMatPointIntScalarIntIntInt() {
- fail("Not yet implemented");
- }
-
- public void testCircleMatPointIntScalarIntInt() {
- fail("Not yet implemented");
- }
-
- public void testCircleMatPointIntScalarInt() {
- fail("Not yet implemented");
- }
-
public void testCircleMatPointIntScalar() {
Point center = new Point(gray0.cols() / 2, gray0.rows()/2);
int radius = Math.min(gray0.cols()/4, gray0.rows()/4);
@@ -160,6 +114,18 @@ public class coreTest extends OpenCVTestCase {
assertTrue(0 != core.countNonZero(gray0));
}
+ public void testCircleMatPointIntScalarInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCircleMatPointIntScalarIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCircleMatPointIntScalarIntIntInt() {
+ fail("Not yet implemented");
+ }
+
public void testCompare() {
Mat cmp = new Mat(0, 0, Mat.CvType.CV_8UC1);
@@ -172,22 +138,22 @@ public class coreTest extends OpenCVTestCase {
core.compare(gray0, grayRnd, cmp, core.CMP_EQ);
double nBlackPixels = core.countNonZero(cmp);
double nNonBlackpixels = core.countNonZero(grayRnd);
- assertTrue((nBlackPixels+nNonBlackpixels) == grayRnd.rows()*grayRnd.cols());
+ assertTrue((nBlackPixels + nNonBlackpixels) == grayRnd.total());
}
- public void testCompleteSymmMatBoolean() {
- core.completeSymm(grayRnd_32f, true);
+ public void testCompleteSymmMat() {
+ core.completeSymm(grayRnd_32f);
core.transpose(grayRnd_32f, dst);
assertMatEqual(grayRnd_32f, dst);
}
- public void testCompleteSymmMat() {
- core.completeSymm(grayRnd_32f);
+ public void testCompleteSymmMatBoolean() {
+ core.completeSymm(grayRnd_32f, true);
core.transpose(grayRnd_32f, dst);
assertMatEqual(grayRnd_32f, dst);
}
- public void testConvertScaleAbsMatMatDoubleDouble() {
+ public void testConvertScaleAbsMatMat() {
fail("Not yet implemented");
}
@@ -195,7 +161,7 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testConvertScaleAbsMatMat() {
+ public void testConvertScaleAbsMatMatDoubleDouble() {
fail("Not yet implemented");
}
@@ -210,10 +176,6 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testDctMatMatInt() {
- fail("Not yet implemented");
- }
-
public void testDctMatMat() {
core.dct(gray0_32f_1d, dst);
assertMatEqual(gray0_32f_1d, dst);
@@ -222,15 +184,20 @@ public class coreTest extends OpenCVTestCase {
in.put(0, 0, 135.22211, 50.811096, 102.27016, 207.6682);
Mat out = new Mat(1, 4, Mat.CvType.CV_32FC1);
out.put(0, 0, 247.98576, -61.252407, 94.904533, 14.013477);
+
core.dct(in, dst);
assertMatEqual(out, dst);
}
+ public void testDctMatMatInt() {
+ fail("Not yet implemented");
+ }
+
public void testDeterminant() {
fail("Not yet implemented");
}
- public void testDftMatMatIntInt() {
+ public void testDftMatMat() {
fail("Not yet implemented");
}
@@ -238,15 +205,15 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testDftMatMat() {
+ public void testDftMatMatIntInt() {
fail("Not yet implemented");
}
- public void testDivideMatMatMatDoubleInt() {
+ public void testDivideDoubleMatMat() {
fail("Not yet implemented");
}
- public void testDivideMatMatMatDouble() {
+ public void testDivideDoubleMatMatInt() {
fail("Not yet implemented");
}
@@ -254,27 +221,27 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testDivideDoubleMatMatInt() {
+ public void testDivideMatMatMatDouble() {
fail("Not yet implemented");
}
- public void testDivideDoubleMatMat() {
+ public void testDivideMatMatMatDoubleInt() {
fail("Not yet implemented");
}
- public void testEllipseMatPointSizeDoubleDoubleDoubleScalarIntIntInt() {
+ public void testEllipseMatPointSizeDoubleDoubleDoubleScalar() {
fail("Not yet implemented");
}
- public void testEllipseMatPointSizeDoubleDoubleDoubleScalarIntInt() {
+ public void testEllipseMatPointSizeDoubleDoubleDoubleScalarInt() {
fail("Not yet implemented");
}
- public void testEllipseMatPointSizeDoubleDoubleDoubleScalarInt() {
+ public void testEllipseMatPointSizeDoubleDoubleDoubleScalarIntInt() {
fail("Not yet implemented");
}
- public void testEllipseMatPointSizeDoubleDoubleDoubleScalar() {
+ public void testEllipseMatPointSizeDoubleDoubleDoubleScalarIntIntInt() {
fail("Not yet implemented");
}
@@ -295,11 +262,11 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testGemmMatMatDoubleMatDoubleMatInt() {
+ public void testGemmMatMatDoubleMatDoubleMat() {
fail("Not yet implemented");
}
- public void testGemmMatMatDoubleMatDoubleMat() {
+ public void testGemmMatMatDoubleMatDoubleMatInt() {
fail("Not yet implemented");
}
@@ -317,20 +284,20 @@ public class coreTest extends OpenCVTestCase {
Mat eConcat = new Mat(1, 9, Mat.CvType.CV_8UC1);
e.put(0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1);
eConcat.put(0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 1);
- core.hconcat(e, dst);
+ core.hconcat(e, dst);
assertMatEqual(eConcat, dst);
}
- public void testIdctMatMatInt() {
+ public void testIdctMatMat() {
fail("Not yet implemented");
}
- public void testIdctMatMat() {
+ public void testIdctMatMatInt() {
fail("Not yet implemented");
}
- public void testIdftMatMatIntInt() {
+ public void testIdftMatMat() {
fail("Not yet implemented");
}
@@ -338,7 +305,7 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testIdftMatMat() {
+ public void testIdftMatMatIntInt() {
fail("Not yet implemented");
}
@@ -354,23 +321,11 @@ public class coreTest extends OpenCVTestCase {
//assertMatEqual(rgba0, rgba128);
}
- public void testInvertMatMatInt() {
- fail("Not yet implemented");
- }
-
public void testInvertMatMat() {
fail("Not yet implemented");
}
- public void testLineMatPointPointScalarIntIntInt() {
- fail("Not yet implemented");
- }
-
- public void testLineMatPointPointScalarIntInt() {
- fail("Not yet implemented");
- }
-
- public void testLineMatPointPointScalarInt() {
+ public void testInvertMatMatInt() {
fail("Not yet implemented");
}
@@ -386,19 +341,60 @@ public class coreTest extends OpenCVTestCase {
assertTrue(nPoints == core.countNonZero(gray0));
}
+ public void testLineMatPointPointScalarInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testLineMatPointPointScalarIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testLineMatPointPointScalarIntIntInt() {
+ fail("Not yet implemented");
+ }
+
public void testLog() {
fail("Not yet implemented");
}
- public void testMagnitude() {
+ public void testLUTMatMatMat() {
+ Mat lut = new Mat(1, 256, Mat.CvType.CV_8UC1);
+
+ lut.setTo(0);
+ core.LUT(grayRnd, lut, dst);
+ assertMatEqual(gray0, dst);
+
+ lut.setTo(255);
+ core.LUT(grayRnd, lut, dst);
+ assertMatEqual(gray255, dst);
+ }
+
+ public void testLUTMatMatMatInt() {
fail("Not yet implemented");
}
- public void testMax() {
+ public void testMagnitude() {
fail("Not yet implemented");
}
- public void testMeanStdDevMatMatMatMat() {
+ public void testMahalanobis() {
+ Mat covar = new Mat(matSize, matSize, Mat.CvType.CV_32FC1);
+ Mat mean = new Mat(1, matSize, Mat.CvType.CV_32FC1);
+ core.calcCovarMatrix(grayRnd_32f, covar, mean, 8|1, Mat.CvType.CV_32F); //TODO: CV_COVAR_NORMAL instead of magic numbers
+ covar.inv();
+
+ Mat line1 = grayRnd_32f.submat(0, 1, 0, grayRnd_32f.cols());
+ Mat line2 = grayRnd_32f.submat(1, 2, 0, grayRnd_32f.cols());
+
+ double d = 0.0;
+ d = core.Mahalanobis(line1, line1, covar);
+ assertEquals(0.0, d);
+
+ d = core.Mahalanobis(line1, line2, covar);
+ assertTrue(d > 0.0);
+ }
+
+ public void testMax() {
fail("Not yet implemented");
}
@@ -406,11 +402,11 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testMin() {
+ public void testMeanStdDevMatMatMatMat() {
fail("Not yet implemented");
}
- public void testMulSpectrumsMatMatMatIntBoolean() {
+ public void testMin() {
fail("Not yet implemented");
}
@@ -419,17 +415,20 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testMulTransposedMatMatBooleanMatDoubleInt() {
+ public void testMulSpectrumsMatMatMatIntBoolean() {
fail("Not yet implemented");
}
- public void testMulTransposedMatMatBooleanMatDouble() {
+ public void testMultiplyMatMatMat() {
fail("Not yet implemented");
}
- public void testMulTransposedMatMatBooleanMat() {
- core.mulTransposed(grayRnd_32f, dst, true, grayRnd_32f);
- assertMatEqual(gray0_32f, dst);
+ public void testMultiplyMatMatMatDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testMultiplyMatMatMatDoubleInt() {
+ fail("Not yet implemented");
}
public void testMulTransposedMatMatBoolean() {
@@ -437,40 +436,36 @@ public class coreTest extends OpenCVTestCase {
assertMatEqual(grayE_32f, dst);
}
- public void testMultiplyMatMatMatDoubleInt() {
- fail("Not yet implemented");
+ public void testMulTransposedMatMatBooleanMat() {
+ core.mulTransposed(grayRnd_32f, dst, true, grayRnd_32f);
+ assertMatEqual(gray0_32f, dst);
}
- public void testMultiplyMatMatMatDouble() {
+ public void testMulTransposedMatMatBooleanMatDouble() {
fail("Not yet implemented");
}
- public void testMultiplyMatMatMat() {
+ public void testMulTransposedMatMatBooleanMatDoubleInt() {
fail("Not yet implemented");
}
- public void testNormMatIntMat() {
+ public void testNormalizeMatMat() {
fail("Not yet implemented");
}
- public void testNormMatInt() {
- double n = core.norm(gray127, core.NORM_INF);
- assertTrue(127 == n);
- }
-
- public void testNormMat() {
+ public void testNormalizeMatMatDouble() {
fail("Not yet implemented");
}
- public void testNormMatMatIntMat() {
+ public void testNormalizeMatMatDoubleDouble() {
fail("Not yet implemented");
}
- public void testNormMatMatInt() {
+ public void testNormalizeMatMatDoubleDoubleInt() {
fail("Not yet implemented");
}
- public void testNormMatMat() {
+ public void testNormalizeMatMatDoubleDoubleIntInt() {
fail("Not yet implemented");
}
@@ -478,23 +473,28 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testNormalizeMatMatDoubleDoubleIntInt() {
+ public void testNormMat() {
fail("Not yet implemented");
}
- public void testNormalizeMatMatDoubleDoubleInt() {
+ public void testNormMatInt() {
+ double n = core.norm(gray127, core.NORM_INF);
+ assertTrue(127 == n);
+ }
+
+ public void testNormMatIntMat() {
fail("Not yet implemented");
}
- public void testNormalizeMatMatDoubleDouble() {
+ public void testNormMatMat() {
fail("Not yet implemented");
}
- public void testNormalizeMatMatDouble() {
+ public void testNormMatMatInt() {
fail("Not yet implemented");
}
- public void testNormalizeMatMat() {
+ public void testNormMatMatIntMat() {
fail("Not yet implemented");
}
@@ -503,19 +503,19 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testPhaseMatMatMatBoolean() {
+ public void testPhaseMatMatMat() {
fail("Not yet implemented");
}
- public void testPhaseMatMatMat() {
+ public void testPhaseMatMatMatBoolean() {
fail("Not yet implemented");
}
- public void testPolarToCartMatMatMatMatBoolean() {
+ public void testPolarToCartMatMatMatMat() {
fail("Not yet implemented");
}
- public void testPolarToCartMatMatMatMat() {
+ public void testPolarToCartMatMatMatMatBoolean() {
fail("Not yet implemented");
}
@@ -531,27 +531,27 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testRectangleMatPointPointScalarIntIntInt() {
+ public void testRectangleMatPointPointScalar() {
fail("Not yet implemented");
}
- public void testRectangleMatPointPointScalarIntInt() {
+ public void testRectangleMatPointPointScalarInt() {
fail("Not yet implemented");
}
- public void testRectangleMatPointPointScalarInt() {
+ public void testRectangleMatPointPointScalarIntInt() {
fail("Not yet implemented");
}
- public void testRectangleMatPointPointScalar() {
+ public void testRectangleMatPointPointScalarIntIntInt() {
fail("Not yet implemented");
}
- public void testReduceMatMatIntIntInt() {
+ public void testReduceMatMatIntInt() {
fail("Not yet implemented");
}
- public void testReduceMatMatIntInt() {
+ public void testReduceMatMatIntIntInt() {
fail("Not yet implemented");
}
@@ -563,20 +563,20 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testSetIdentityMatScalar() {
+ public void testSetIdentityMat() {
fail("Not yet implemented");
}
- public void testSetIdentityMat() {
+ public void testSetIdentityMatScalar() {
fail("Not yet implemented");
}
public void testSetUseOptimized() {
- //FIXME: do we need this function?
+ //XXX: do we need this function?
fail("Not yet implemented");
}
- public void testSolveMatMatMatInt() {
+ public void testSolveCubic() {
fail("Not yet implemented");
}
@@ -584,15 +584,15 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testSolveCubic() {
+ public void testSolveMatMatMatInt() {
fail("Not yet implemented");
}
- public void testSolvePolyMatMatInt() {
+ public void testSolvePolyMatMat() {
fail("Not yet implemented");
}
- public void testSolvePolyMatMat() {
+ public void testSolvePolyMatMatInt() {
fail("Not yet implemented");
}
@@ -608,7 +608,7 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testSubtractMatMatMatMatInt() {
+ public void testSubtractMatMatMat() {
fail("Not yet implemented");
}
@@ -616,7 +616,7 @@ public class coreTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testSubtractMatMatMat() {
+ public void testSubtractMatMatMatMatInt() {
fail("Not yet implemented");
}
diff --git a/modules/java/android_test/src/org/opencv/test/highguiTest.java b/modules/java/android_test/src/org/opencv/test/highguiTest.java
index 154ca7673c..d6a9b2d518 100644
--- a/modules/java/android_test/src/org/opencv/test/highguiTest.java
+++ b/modules/java/android_test/src/org/opencv/test/highguiTest.java
@@ -1,16 +1,7 @@
package org.opencv.test;
-import java.io.FileOutputStream;
-
-import org.opencv.Mat;
import org.opencv.highgui;
-import android.content.Context;
-import android.graphics.Bitmap;
-import android.graphics.Bitmap.CompressFormat;
-import android.graphics.BitmapFactory;
-import android.util.Log;
-
public class highguiTest extends OpenCVTestCase {
@@ -39,32 +30,33 @@ public class highguiTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testImreadStringInt() {
- dst = highgui.imread(LENA, 0);
+ public void testImreadString() {
+ dst = highgui.imread(LENA);
assertTrue(!dst.empty());
- assertEquals(1, dst.channels());
+ assertEquals(3, dst.channels());
assertTrue(512 == dst.cols());
assertTrue(512 == dst.rows());
}
- public void testImreadString() {
- dst = highgui.imread(LENA);
+ public void testImreadStringInt() {
+ dst = highgui.imread(LENA, 0);
assertTrue(!dst.empty());
- assertEquals(3, dst.channels());
+ assertEquals(1, dst.channels());
assertTrue(512 == dst.cols());
assertTrue(512 == dst.rows());
}
public void testImshow() {
+ //XXX: do we need this function?
fail("Not yet implemented");
}
- public void testNamedWindowStringInt() {
+ public void testNamedWindowString() {
//XXX: do not export this function
fail("Do not export this function");
}
- public void testNamedWindowString() {
+ public void testNamedWindowStringInt() {
//XXX: do not export this function
fail("Do not export this function");
}
@@ -84,12 +76,12 @@ public class highguiTest extends OpenCVTestCase {
fail("Do not export this function");
}
- public void testWaitKeyInt() {
+ public void testWaitKey() {
//XXX: we need this function if only imshow will be implemented
fail("Not yet implemented");
}
- public void testWaitKey() {
+ public void testWaitKeyInt() {
//XXX: we need this function if only imshow will be implemented
fail("Not yet implemented");
}
diff --git a/modules/java/android_test/src/org/opencv/test/imgprocTest.java b/modules/java/android_test/src/org/opencv/test/imgprocTest.java
index 6782ff4f8b..24b72c004a 100644
--- a/modules/java/android_test/src/org/opencv/test/imgprocTest.java
+++ b/modules/java/android_test/src/org/opencv/test/imgprocTest.java
@@ -5,640 +5,640 @@ import org.opencv.imgproc;
public class imgprocTest extends OpenCVTestCase {
+
+ public void test_1() {
+ super.test_1("IMGPROC");
+ }
- public void test_1() {
- super.test_1("IMGPROC");
- }
-
- //FIXME: this test crashes
- //public void test_Can_Call_accumulate() {
- // dst = new Mat(gray1.rows(), gray1.cols(), Mat.CvType.CV_32FC1);
- // imgproc.accumulate(gray1, dst);
- // assertMatEqual(gray1, dst);
- //}
-
- public void testCannyMatMatDoubleDoubleIntBoolean() {
- fail("Not yet implemented");
- }
-
- public void testCannyMatMatDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testCannyMatMatDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testGaussianBlurMatMatSizeDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testGaussianBlurMatMatSizeDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testGaussianBlurMatMatSizeDouble() {
- fail("Not yet implemented");
- }
-
- public void testHoughCirclesMatMatIntDoubleDoubleDoubleDoubleIntInt() {
- fail("Not yet implemented");
- }
-
- public void testHoughCirclesMatMatIntDoubleDoubleDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testHoughCirclesMatMatIntDoubleDoubleDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testHoughCirclesMatMatIntDoubleDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testHoughCirclesMatMatIntDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testHoughLinesMatMatDoubleDoubleIntDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testHoughLinesMatMatDoubleDoubleIntDouble() {
- fail("Not yet implemented");
- }
-
- public void testHoughLinesMatMatDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testHoughLinesPMatMatDoubleDoubleIntDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testHoughLinesPMatMatDoubleDoubleIntDouble() {
- fail("Not yet implemented");
- }
-
- public void testHoughLinesPMatMatDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testLaplacianMatMatIntIntDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testLaplacianMatMatIntIntDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testLaplacianMatMatIntIntDouble() {
- fail("Not yet implemented");
- }
-
- public void testLaplacianMatMatIntInt() {
- fail("Not yet implemented");
- }
-
- public void testLaplacianMatMatInt() {
- fail("Not yet implemented");
- }
-
- public void testScharrMatMatIntIntIntDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testScharrMatMatIntIntIntDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testScharrMatMatIntIntIntDouble() {
- fail("Not yet implemented");
- }
-
- public void testScharrMatMatIntIntInt() {
- fail("Not yet implemented");
- }
-
- public void testSobelMatMatIntIntIntIntDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testSobelMatMatIntIntIntIntDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testSobelMatMatIntIntIntIntDouble() {
- fail("Not yet implemented");
- }
-
- public void testSobelMatMatIntIntIntInt() {
- fail("Not yet implemented");
- }
-
- public void testSobelMatMatIntIntInt() {
- fail("Not yet implemented");
- }
-
- public void testAccumulateMatMatMat() {
- fail("Not yet implemented");
- }
-
- public void testAccumulateMatMat() {
- fail("Not yet implemented");
- }
-
- public void testAccumulateProductMatMatMatMat() {
- fail("Not yet implemented");
- }
-
- public void testAccumulateProductMatMatMat() {
- fail("Not yet implemented");
- }
-
- public void testAccumulateSquareMatMatMat() {
- fail("Not yet implemented");
- }
-
- public void testAccumulateSquareMatMat() {
- fail("Not yet implemented");
- }
-
- public void testAccumulateWeightedMatMatDoubleMat() {
- fail("Not yet implemented");
- }
-
- public void testAccumulateWeightedMatMatDouble() {
- fail("Not yet implemented");
- }
-
- public void testAdaptiveThreshold() {
- fail("Not yet implemented");
- }
-
- public void testArcLength() {
- fail("Not yet implemented");
- }
-
- public void testBilateralFilterMatMatIntDoubleDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testBilateralFilterMatMatIntDoubleDouble() {
- fail("Not yet implemented");
- }
-
- public void testBlurMatMatSizePointInt() {
- fail("Not yet implemented");
- }
-
- public void testBlurMatMatSizePoint() {
- fail("Not yet implemented");
- }
-
- public void testBlurMatMatSize() {
- Size sz = new Size(3, 3);
-
- imgproc.blur(gray0, dst, sz);
- assertMatEqual(gray0, dst);
-
- imgproc.blur(gray255, dst, sz);
- assertMatEqual(gray255, dst);
- }
-
- public void testBorderInterpolate() {
- fail("Not yet implemented");
- }
-
- public void testBoxFilterMatMatIntSizePointBooleanInt() {
- fail("Not yet implemented");
- }
-
- public void testBoxFilterMatMatIntSizePointBoolean() {
- fail("Not yet implemented");
- }
-
- public void testBoxFilterMatMatIntSizePoint() {
- fail("Not yet implemented");
- }
-
- public void testBoxFilterMatMatIntSize() {
- Size sz = new Size(3, 3);
- imgproc.boxFilter(gray0, dst, 8, sz);
- assertMatEqual(gray0, dst);
- }
-
- public void testCompareHist() {
- fail("Not yet implemented");
- }
-
- public void testContourAreaMatBoolean() {
- fail("Not yet implemented");
- }
-
- public void testContourAreaMat() {
- fail("Not yet implemented");
- }
-
- public void testConvertMapsMatMatMatMatIntBoolean() {
- fail("Not yet implemented");
- }
-
- public void testConvertMapsMatMatMatMatInt() {
- fail("Not yet implemented");
- }
-
- public void testCopyMakeBorderMatMatIntIntIntIntIntScalar() {
- fail("Not yet implemented");
- }
-
- public void testCopyMakeBorderMatMatIntIntIntIntInt() {
- fail("Not yet implemented");
- }
-
- public void testCornerEigenValsAndVecsMatMatIntIntInt() {
- fail("Not yet implemented");
- }
-
- public void testCornerEigenValsAndVecsMatMatIntInt() {
- fail("Not yet implemented");
- }
-
- public void testCornerHarrisMatMatIntIntDoubleInt() {
- fail("Not yet implemented");
- }
-
- public void testCornerHarrisMatMatIntIntDouble() {
- fail("Not yet implemented");
- }
-
- public void testCornerMinEigenValMatMatIntIntInt() {
- fail("Not yet implemented");
- }
-
- public void testCornerMinEigenValMatMatIntInt() {
- fail("Not yet implemented");
- }
-
- public void testCornerMinEigenValMatMatInt() {
- fail("Not yet implemented");
- }
-
- public void testCvtColorMatMatIntInt() {
- fail("Not yet implemented");
- }
-
- public void testCvtColorMatMatInt() {
- fail("Not yet implemented");
- }
-
- public void testDilateMatMatMatPointIntIntScalar() {
- fail("Not yet implemented");
- }
-
- public void testDilateMatMatMatPointIntInt() {
- fail("Not yet implemented");
- }
-
- public void testDilateMatMatMatPointInt() {
- fail("Not yet implemented");
- }
+ //FIXME: this test crashes
+ //public void test_Can_Call_accumulate() {
+ // dst = new Mat(gray1.rows(), gray1.cols(), Mat.CvType.CV_32FC1);
+ // imgproc.accumulate(gray1, dst);
+ // assertMatEqual(gray1, dst);
+ //}
+
+ public void testAccumulateMatMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testAccumulateMatMatMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testAccumulateProductMatMatMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testAccumulateProductMatMatMatMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testAccumulateSquareMatMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testAccumulateSquareMatMatMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testAccumulateWeightedMatMatDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testAccumulateWeightedMatMatDoubleMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testAdaptiveThreshold() {
+ fail("Not yet implemented");
+ }
+
+ public void testArcLength() {
+ fail("Not yet implemented");
+ }
+
+ public void testBilateralFilterMatMatIntDoubleDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testBilateralFilterMatMatIntDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testBlurMatMatSize() {
+ Size sz = new Size(3, 3);
+
+ imgproc.blur(gray0, dst, sz);
+ assertMatEqual(gray0, dst);
+
+ imgproc.blur(gray255, dst, sz);
+ assertMatEqual(gray255, dst);
+ }
+
+ public void testBlurMatMatSizePoint() {
+ fail("Not yet implemented");
+ }
+
+ public void testBlurMatMatSizePointInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testBorderInterpolate() {
+ fail("Not yet implemented");
+ }
+
+ public void testBoxFilterMatMatIntSize() {
+ Size sz = new Size(3, 3);
+ imgproc.boxFilter(gray0, dst, 8, sz);
+ assertMatEqual(gray0, dst);
+ }
+
+ public void testBoxFilterMatMatIntSizePoint() {
+ fail("Not yet implemented");
+ }
+
+ public void testBoxFilterMatMatIntSizePointBoolean() {
+ fail("Not yet implemented");
+ }
+
+ public void testBoxFilterMatMatIntSizePointBooleanInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCannyMatMatDoubleDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testCannyMatMatDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCannyMatMatDoubleDoubleIntBoolean() {
+ fail("Not yet implemented");
+ }
+
+ public void testCompareHist() {
+ fail("Not yet implemented");
+ }
+
+ public void testContourAreaMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testContourAreaMatBoolean() {
+ fail("Not yet implemented");
+ }
+
+ public void testConvertMapsMatMatMatMatInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testConvertMapsMatMatMatMatIntBoolean() {
+ fail("Not yet implemented");
+ }
+
+ public void testCopyMakeBorderMatMatIntIntIntIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCopyMakeBorderMatMatIntIntIntIntIntScalar() {
+ fail("Not yet implemented");
+ }
+
+ public void testCornerEigenValsAndVecsMatMatIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCornerEigenValsAndVecsMatMatIntIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCornerHarrisMatMatIntIntDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testCornerHarrisMatMatIntIntDoubleInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCornerMinEigenValMatMatInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCornerMinEigenValMatMatIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCornerMinEigenValMatMatIntIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCvtColorMatMatInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testCvtColorMatMatIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testDilateMatMatMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testDilateMatMatMatPoint() {
+ fail("Not yet implemented");
+ }
+
+ public void testDilateMatMatMatPointInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testDilateMatMatMatPointIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testDilateMatMatMatPointIntIntScalar() {
+ fail("Not yet implemented");
+ }
+
+ public void testDistanceTransform() {
+ fail("Not yet implemented");
+ }
+
+ public void testEqualizeHist() {
+ fail("Not yet implemented");
+ }
+
+ public void testErodeMatMatMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testErodeMatMatMatPoint() {
+ fail("Not yet implemented");
+ }
+
+ public void testErodeMatMatMatPointInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testErodeMatMatMatPointIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testErodeMatMatMatPointIntIntScalar() {
+ fail("Not yet implemented");
+ }
+
+ public void testFilter2DMatMatIntMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testFilter2DMatMatIntMatPoint() {
+ fail("Not yet implemented");
+ }
+
+ public void testFilter2DMatMatIntMatPointDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testFilter2DMatMatIntMatPointDoubleInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testGaussianBlurMatMatSizeDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testGaussianBlurMatMatSizeDoubleDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testGaussianBlurMatMatSizeDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetDefaultNewCameraMatrixMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetDefaultNewCameraMatrixMatSize() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetDefaultNewCameraMatrixMatSizeBoolean() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetDerivKernelsMatMatIntIntInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetDerivKernelsMatMatIntIntIntBoolean() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetDerivKernelsMatMatIntIntIntBooleanInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetGaussianKernelIntDouble() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetGaussianKernelIntDoubleInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetRectSubPixMatSizePointMat() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetRectSubPixMatSizePointMatInt() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetRotationMatrix2D() {
+ fail("Not yet implemented");
+ }
+
+ public void testGetStructuringElementIntSize() {
+ fail("Not yet implemented");
+ }
- public void testDilateMatMatMatPoint() {
- fail("Not yet implemented");
- }
+ public void testGetStructuringElementIntSizePoint() {
+ fail("Not yet implemented");
+ }
- public void testDilateMatMatMat() {
- fail("Not yet implemented");
- }
+ public void testGoodFeaturesToTrackMatMatIntDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testDistanceTransform() {
- fail("Not yet implemented");
- }
+ public void testGoodFeaturesToTrackMatMatIntDoubleDoubleMat() {
+ fail("Not yet implemented");
+ }
- public void testEqualizeHist() {
- fail("Not yet implemented");
- }
+ public void testGoodFeaturesToTrackMatMatIntDoubleDoubleMatInt() {
+ fail("Not yet implemented");
+ }
- public void testErodeMatMatMatPointIntIntScalar() {
- fail("Not yet implemented");
- }
+ public void testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIntBoolean() {
+ fail("Not yet implemented");
+ }
- public void testErodeMatMatMatPointIntInt() {
- fail("Not yet implemented");
- }
+ public void testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIntBooleanDouble() {
+ fail("Not yet implemented");
+ }
- public void testErodeMatMatMatPointInt() {
- fail("Not yet implemented");
- }
+ public void testGrabCutMatMatRectMatMatInt() {
+ fail("Not yet implemented");
+ }
- public void testErodeMatMatMatPoint() {
- fail("Not yet implemented");
- }
+ public void testGrabCutMatMatRectMatMatIntInt() {
+ fail("Not yet implemented");
+ }
- public void testErodeMatMatMat() {
- fail("Not yet implemented");
- }
+ public void testHoughCirclesMatMatIntDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testFilter2DMatMatIntMatPointDoubleInt() {
- fail("Not yet implemented");
- }
+ public void testHoughCirclesMatMatIntDoubleDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testFilter2DMatMatIntMatPointDouble() {
- fail("Not yet implemented");
- }
+ public void testHoughCirclesMatMatIntDoubleDoubleDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testFilter2DMatMatIntMatPoint() {
- fail("Not yet implemented");
- }
+ public void testHoughCirclesMatMatIntDoubleDoubleDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
- public void testFilter2DMatMatIntMat() {
- fail("Not yet implemented");
- }
+ public void testHoughCirclesMatMatIntDoubleDoubleDoubleDoubleIntInt() {
+ fail("Not yet implemented");
+ }
- public void testGetDefaultNewCameraMatrixMatSizeBoolean() {
- fail("Not yet implemented");
- }
+ public void testHoughLinesMatMatDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
- public void testGetDefaultNewCameraMatrixMatSize() {
- fail("Not yet implemented");
- }
+ public void testHoughLinesMatMatDoubleDoubleIntDouble() {
+ fail("Not yet implemented");
+ }
- public void testGetDefaultNewCameraMatrixMat() {
- fail("Not yet implemented");
- }
+ public void testHoughLinesMatMatDoubleDoubleIntDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testGetDerivKernelsMatMatIntIntIntBooleanInt() {
- fail("Not yet implemented");
- }
+ public void testHoughLinesPMatMatDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
- public void testGetDerivKernelsMatMatIntIntIntBoolean() {
- fail("Not yet implemented");
- }
+ public void testHoughLinesPMatMatDoubleDoubleIntDouble() {
+ fail("Not yet implemented");
+ }
- public void testGetDerivKernelsMatMatIntIntInt() {
- fail("Not yet implemented");
- }
+ public void testHoughLinesPMatMatDoubleDoubleIntDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testGetGaussianKernelIntDoubleInt() {
- fail("Not yet implemented");
- }
+ public void testInitUndistortRectifyMap() {
+ fail("Not yet implemented");
+ }
- public void testGetGaussianKernelIntDouble() {
- fail("Not yet implemented");
- }
+ public void testInitWideAngleProjMapMatMatSizeIntIntMatMat() {
+ fail("Not yet implemented");
+ }
- public void testGetRectSubPixMatSizePointMatInt() {
- fail("Not yet implemented");
- }
+ public void testInitWideAngleProjMapMatMatSizeIntIntMatMatInt() {
+ fail("Not yet implemented");
+ }
- public void testGetRectSubPixMatSizePointMat() {
- fail("Not yet implemented");
- }
+ public void testInitWideAngleProjMapMatMatSizeIntIntMatMatIntDouble() {
+ fail("Not yet implemented");
+ }
- public void testGetRotationMatrix2D() {
- fail("Not yet implemented");
- }
+ public void testInpaint() {
+ fail("Not yet implemented");
+ }
- public void testGetStructuringElementIntSizePoint() {
- fail("Not yet implemented");
- }
+ public void testIntegral2MatMatMat() {
+ fail("Not yet implemented");
+ }
- public void testGetStructuringElementIntSize() {
- fail("Not yet implemented");
- }
+ public void testIntegral2MatMatMatInt() {
+ fail("Not yet implemented");
+ }
- public void testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIntBooleanDouble() {
- fail("Not yet implemented");
- }
+ public void testIntegral3MatMatMatMat() {
+ fail("Not yet implemented");
+ }
- public void testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIntBoolean() {
- fail("Not yet implemented");
- }
+ public void testIntegral3MatMatMatMatInt() {
+ fail("Not yet implemented");
+ }
- public void testGoodFeaturesToTrackMatMatIntDoubleDoubleMatInt() {
- fail("Not yet implemented");
- }
+ public void testIntegralMatMat() {
+ fail("Not yet implemented");
+ }
- public void testGoodFeaturesToTrackMatMatIntDoubleDoubleMat() {
- fail("Not yet implemented");
- }
+ public void testIntegralMatMatInt() {
+ fail("Not yet implemented");
+ }
- public void testGoodFeaturesToTrackMatMatIntDoubleDouble() {
- fail("Not yet implemented");
- }
+ public void testInvertAffineTransform() {
+ fail("Not yet implemented");
+ }
- public void testGrabCutMatMatRectMatMatIntInt() {
- fail("Not yet implemented");
- }
+ public void testIsContourConvex() {
+ fail("Not yet implemented");
+ }
- public void testGrabCutMatMatRectMatMatInt() {
- fail("Not yet implemented");
- }
+ public void testLaplacianMatMatInt() {
+ fail("Not yet implemented");
+ }
- public void testInitUndistortRectifyMap() {
- fail("Not yet implemented");
- }
+ public void testLaplacianMatMatIntInt() {
+ fail("Not yet implemented");
+ }
- public void testInitWideAngleProjMapMatMatSizeIntIntMatMatIntDouble() {
- fail("Not yet implemented");
- }
+ public void testLaplacianMatMatIntIntDouble() {
+ fail("Not yet implemented");
+ }
- public void testInitWideAngleProjMapMatMatSizeIntIntMatMatInt() {
- fail("Not yet implemented");
- }
+ public void testLaplacianMatMatIntIntDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testInitWideAngleProjMapMatMatSizeIntIntMatMat() {
- fail("Not yet implemented");
- }
+ public void testLaplacianMatMatIntIntDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
- public void testInpaint() {
- fail("Not yet implemented");
- }
+ public void testMatchShapes() {
+ fail("Not yet implemented");
+ }
- public void testIntegralMatMatInt() {
- fail("Not yet implemented");
- }
+ public void testMatchTemplate() {
+ fail("Not yet implemented");
+ }
- public void testIntegralMatMat() {
- fail("Not yet implemented");
- }
+ public void testMedianBlur() {
+ fail("Not yet implemented");
+ }
- public void testIntegral2MatMatMatInt() {
- fail("Not yet implemented");
- }
+ public void testMorphologyExMatMatIntMat() {
+ fail("Not yet implemented");
+ }
- public void testIntegral2MatMatMat() {
- fail("Not yet implemented");
- }
+ public void testMorphologyExMatMatIntMatPoint() {
+ fail("Not yet implemented");
+ }
- public void testIntegral3MatMatMatMatInt() {
- fail("Not yet implemented");
- }
+ public void testMorphologyExMatMatIntMatPointInt() {
+ fail("Not yet implemented");
+ }
- public void testIntegral3MatMatMatMat() {
- fail("Not yet implemented");
- }
+ public void testMorphologyExMatMatIntMatPointIntInt() {
+ fail("Not yet implemented");
+ }
- public void testInvertAffineTransform() {
- fail("Not yet implemented");
- }
+ public void testMorphologyExMatMatIntMatPointIntIntScalar() {
+ fail("Not yet implemented");
+ }
- public void testIsContourConvex() {
- fail("Not yet implemented");
- }
+ public void testPointPolygonTest() {
+ fail("Not yet implemented");
+ }
- public void testMatchShapes() {
- fail("Not yet implemented");
- }
+ public void testPreCornerDetectMatMatInt() {
+ fail("Not yet implemented");
+ }
- public void testMatchTemplate() {
- fail("Not yet implemented");
- }
+ public void testPreCornerDetectMatMatIntInt() {
+ fail("Not yet implemented");
+ }
- public void testMedianBlur() {
- fail("Not yet implemented");
- }
+ public void testPyrDownMatMat() {
+ fail("Not yet implemented");
+ }
- public void testMorphologyExMatMatIntMatPointIntIntScalar() {
- fail("Not yet implemented");
- }
+ public void testPyrDownMatMatSize() {
+ fail("Not yet implemented");
+ }
- public void testMorphologyExMatMatIntMatPointIntInt() {
- fail("Not yet implemented");
- }
+ public void testPyrUpMatMat() {
+ fail("Not yet implemented");
+ }
- public void testMorphologyExMatMatIntMatPointInt() {
- fail("Not yet implemented");
- }
+ public void testPyrUpMatMatSize() {
+ fail("Not yet implemented");
+ }
- public void testMorphologyExMatMatIntMatPoint() {
- fail("Not yet implemented");
- }
+ public void testRemapMatMatMatMatInt() {
+ fail("Not yet implemented");
+ }
- public void testMorphologyExMatMatIntMat() {
- fail("Not yet implemented");
- }
+ public void testRemapMatMatMatMatIntInt() {
+ fail("Not yet implemented");
+ }
- public void testPointPolygonTest() {
- fail("Not yet implemented");
- }
+ public void testRemapMatMatMatMatIntIntScalar() {
+ fail("Not yet implemented");
+ }
- public void testPreCornerDetectMatMatIntInt() {
- fail("Not yet implemented");
- }
+ public void testResizeMatMatSize() {
+ fail("Not yet implemented");
+ }
- public void testPreCornerDetectMatMatInt() {
- fail("Not yet implemented");
- }
+ public void testResizeMatMatSizeDouble() {
+ fail("Not yet implemented");
+ }
- public void testPyrDownMatMatSize() {
- fail("Not yet implemented");
- }
+ public void testResizeMatMatSizeDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testPyrDownMatMat() {
- fail("Not yet implemented");
- }
+ public void testResizeMatMatSizeDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
- public void testPyrUpMatMatSize() {
- fail("Not yet implemented");
- }
+ public void testScharrMatMatIntIntInt() {
+ fail("Not yet implemented");
+ }
- public void testPyrUpMatMat() {
- fail("Not yet implemented");
- }
+ public void testScharrMatMatIntIntIntDouble() {
+ fail("Not yet implemented");
+ }
- public void testRemapMatMatMatMatIntIntScalar() {
- fail("Not yet implemented");
- }
+ public void testScharrMatMatIntIntIntDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testRemapMatMatMatMatIntInt() {
- fail("Not yet implemented");
- }
+ public void testScharrMatMatIntIntIntDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
- public void testRemapMatMatMatMatInt() {
- fail("Not yet implemented");
- }
+ public void testSepFilter2DMatMatIntMatMat() {
+ fail("Not yet implemented");
+ }
- public void testResizeMatMatSizeDoubleDoubleInt() {
- fail("Not yet implemented");
- }
+ public void testSepFilter2DMatMatIntMatMatPoint() {
+ fail("Not yet implemented");
+ }
- public void testResizeMatMatSizeDoubleDouble() {
- fail("Not yet implemented");
- }
+ public void testSepFilter2DMatMatIntMatMatPointDouble() {
+ fail("Not yet implemented");
+ }
- public void testResizeMatMatSizeDouble() {
- fail("Not yet implemented");
- }
+ public void testSepFilter2DMatMatIntMatMatPointDoubleInt() {
+ fail("Not yet implemented");
+ }
- public void testResizeMatMatSize() {
- fail("Not yet implemented");
- }
+ public void testSobelMatMatIntIntInt() {
+ fail("Not yet implemented");
+ }
- public void testSepFilter2DMatMatIntMatMatPointDoubleInt() {
- fail("Not yet implemented");
- }
+ public void testSobelMatMatIntIntIntInt() {
+ fail("Not yet implemented");
+ }
- public void testSepFilter2DMatMatIntMatMatPointDouble() {
- fail("Not yet implemented");
- }
+ public void testSobelMatMatIntIntIntIntDouble() {
+ fail("Not yet implemented");
+ }
- public void testSepFilter2DMatMatIntMatMatPoint() {
- fail("Not yet implemented");
- }
+ public void testSobelMatMatIntIntIntIntDoubleDouble() {
+ fail("Not yet implemented");
+ }
- public void testSepFilter2DMatMatIntMatMat() {
- fail("Not yet implemented");
- }
+ public void testSobelMatMatIntIntIntIntDoubleDoubleInt() {
+ fail("Not yet implemented");
+ }
- public void testThreshold() {
- fail("Not yet implemented");
- }
+ public void testThreshold() {
+ fail("Not yet implemented");
+ }
- public void testUndistortMatMatMatMatMat() {
- fail("Not yet implemented");
- }
+ public void testUndistortMatMatMatMat() {
+ fail("Not yet implemented");
+ }
- public void testUndistortMatMatMatMat() {
- fail("Not yet implemented");
- }
+ public void testUndistortMatMatMatMatMat() {
+ fail("Not yet implemented");
+ }
- public void testWarpAffineMatMatMatSizeIntIntScalar() {
- fail("Not yet implemented");
- }
+ public void testWarpAffineMatMatMatSize() {
+ fail("Not yet implemented");
+ }
- public void testWarpAffineMatMatMatSizeIntInt() {
- fail("Not yet implemented");
- }
+ public void testWarpAffineMatMatMatSizeInt() {
+ fail("Not yet implemented");
+ }
- public void testWarpAffineMatMatMatSizeInt() {
- fail("Not yet implemented");
- }
+ public void testWarpAffineMatMatMatSizeIntInt() {
+ fail("Not yet implemented");
+ }
- public void testWarpAffineMatMatMatSize() {
- fail("Not yet implemented");
- }
+ public void testWarpAffineMatMatMatSizeIntIntScalar() {
+ fail("Not yet implemented");
+ }
- public void testWarpPerspectiveMatMatMatSizeIntIntScalar() {
- fail("Not yet implemented");
- }
+ public void testWarpPerspectiveMatMatMatSize() {
+ fail("Not yet implemented");
+ }
- public void testWarpPerspectiveMatMatMatSizeIntInt() {
- fail("Not yet implemented");
- }
+ public void testWarpPerspectiveMatMatMatSizeInt() {
+ fail("Not yet implemented");
+ }
- public void testWarpPerspectiveMatMatMatSizeInt() {
- fail("Not yet implemented");
- }
+ public void testWarpPerspectiveMatMatMatSizeIntInt() {
+ fail("Not yet implemented");
+ }
- public void testWarpPerspectiveMatMatMatSize() {
- fail("Not yet implemented");
- }
+ public void testWarpPerspectiveMatMatMatSizeIntIntScalar() {
+ fail("Not yet implemented");
+ }
- public void testWatershed() {
- fail("Not yet implemented");
- }
+ public void testWatershed() {
+ fail("Not yet implemented");
+ }
}
diff --git a/modules/java/android_test/src/org/opencv/test/utils.java b/modules/java/android_test/src/org/opencv/test/utils.java
new file mode 100644
index 0000000000..1de9541d7a
--- /dev/null
+++ b/modules/java/android_test/src/org/opencv/test/utils.java
@@ -0,0 +1,35 @@
+package org.opencv.test;
+
+import java.io.FileOutputStream;
+
+import android.content.Context;
+import android.graphics.Bitmap;
+import android.graphics.BitmapFactory;
+import android.graphics.Bitmap.CompressFormat;
+import android.test.AndroidTestCase;
+
+import android.util.Log;
+
+public class utils extends AndroidTestCase {
+
+ static String TAG = "opencv_test_java";
+
+ static public void Log(String message) {
+ Log.e(TAG, message);
+ }
+
+ public void ExportLena() {
+ //TODO: can we run this code just once, not for every test case?
+ try {
+ Bitmap mBitmap = BitmapFactory.decodeResource(this.getContext().getResources(), R.drawable.lena);
+ FileOutputStream fos = this.getContext().openFileOutput("lena.jpg", Context.MODE_WORLD_READABLE);
+ mBitmap.compress(CompressFormat.JPEG, 100, fos);
+ fos.flush();
+ fos.close();
+ }
+ catch (Exception e) {
+ Log.e(TAG, "Tried to write lena.jpg, but: " + e.toString());
+ }
+ }
+
+}
diff --git a/modules/java/android_test/src/org/opencv/test/videoTest.java b/modules/java/android_test/src/org/opencv/test/videoTest.java
index dde51e2e50..86fc092cff 100644
--- a/modules/java/android_test/src/org/opencv/test/videoTest.java
+++ b/modules/java/android_test/src/org/opencv/test/videoTest.java
@@ -7,11 +7,11 @@ public class videoTest extends OpenCVTestCase {
fail("Not yet implemented");
}
- public void testCalcMotionGradientMatMatMatDoubleDoubleInt() {
+ public void testCalcMotionGradientMatMatMatDoubleDouble() {
fail("Not yet implemented");
}
- public void testCalcMotionGradientMatMatMatDoubleDouble() {
+ public void testCalcMotionGradientMatMatMatDoubleDoubleInt() {
fail("Not yet implemented");
}