Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
85166360
Commit
85166360
authored
Jul 04, 2011
by
Kirill Kornyakov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
java tests updated: now they independent from android, test methods are sorted alphabetically
parent
f301cda7
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
846 additions
and
838 deletions
+846
-838
.classpath
modules/java/android_test/.classpath
+1
-1
MatTest.java
modules/java/android_test/src/org/opencv/test/MatTest.java
+56
-56
OpenCVTestCase.java
...java/android_test/src/org/opencv/test/OpenCVTestCase.java
+31
-50
coreTest.java
modules/java/android_test/src/org/opencv/test/coreTest.java
+160
-160
highguiTest.java
...es/java/android_test/src/org/opencv/test/highguiTest.java
+11
-19
imgprocTest.java
...es/java/android_test/src/org/opencv/test/imgprocTest.java
+550
-550
utils.java
modules/java/android_test/src/org/opencv/test/utils.java
+35
-0
videoTest.java
modules/java/android_test/src/org/opencv/test/videoTest.java
+2
-2
No files found.
modules/java/android_test/.classpath
View file @
85166360
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"src"
path=
"src"
/>
<classpathentry
kind=
"src"
path=
"gen"
/>
<classpathentry
kind=
"src"
path=
"gen"
/>
<classpathentry
kind=
"con"
path=
"com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"
/>
<classpathentry
kind=
"con"
path=
"com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"
/>
<classpathentry
kind=
"src"
path=
"OpenCV_src"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.junit.JUNIT_CONTAINER/4"
/>
<classpathentry
kind=
"con"
path=
"org.eclipse.jdt.junit.JUNIT_CONTAINER/4"
/>
<classpathentry
kind=
"src"
path=
"OpenCV_src"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
<classpathentry
kind=
"output"
path=
"bin"
/>
</classpath>
</classpath>
modules/java/android_test/src/org/opencv/test/MatTest.java
View file @
85166360
...
@@ -8,35 +8,39 @@ public class MatTest extends OpenCVTestCase {
...
@@ -8,35 +8,39 @@ public class MatTest extends OpenCVTestCase {
super
.
test_1
(
"Mat"
);
super
.
test_1
(
"Mat"
);
}
}
public
void
test
Finalize
()
{
public
void
test
Channels
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
MatLong
()
{
public
void
test
Clone
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMatIntIntCvType
()
{
public
void
testCol
()
{
Mat
gray
=
new
Mat
(
1
,
1
,
Mat
.
CvType
.
CV_8UC1
);
fail
(
"Not yet implemented"
);
assertFalse
(
gray
.
empty
());
Mat
rgb
=
new
Mat
(
1
,
1
,
Mat
.
CvType
.
CV_8UC3
);
assertFalse
(
rgb
.
empty
());
}
}
public
void
test
MatIntIntCvTypeDoubleDoubleDoubleDoubl
e
()
{
public
void
test
ColRang
e
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMatIntIntCvTypeDoubleDoubleDouble
()
{
public
void
testCols
()
{
assertEquals
(
matSize
,
gray0
.
rows
());
}
public
void
testCopyTo
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
MatIntIntCvTypeDoubleDouble
()
{
public
void
test
Cross
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMatIntIntCvTypeDouble
()
{
public
void
testDataAddr
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDepth
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -44,51 +48,51 @@ public class MatTest extends OpenCVTestCase {
...
@@ -44,51 +48,51 @@ public class MatTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
ToString
()
{
public
void
test
Dot
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testE
mpty
()
{
public
void
testE
lemSize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Type
()
{
public
void
test
Empty
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Depth
()
{
public
void
test
Finalize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Channels
()
{
public
void
test
GetIntIntByteArray
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
ElemSize
()
{
public
void
test
GetIntIntDoubleArray
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Rows
()
{
public
void
test
GetIntIntFloatArray
()
{
assertEquals
(
matSize
,
gray0
.
rows
()
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Height
()
{
public
void
test
GetIntIntIntArray
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Cols
()
{
public
void
test
GetIntIntShortArray
()
{
assertEquals
(
matSize
,
gray0
.
rows
()
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Width
()
{
public
void
test
GetNativeObjAddr
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Total
()
{
public
void
test
Height
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
DataAddr
()
{
public
void
test
Inv
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -100,27 +104,35 @@ public class MatTest extends OpenCVTestCase {
...
@@ -100,27 +104,35 @@ public class MatTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
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"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
RowRang
e
()
{
public
void
test
MatIntIntCvTypeDoubleDoubl
e
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Row
()
{
public
void
test
MatIntIntCvTypeDoubleDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
ColRang
e
()
{
public
void
test
MatIntIntCvTypeDoubleDoubleDoubleDoubl
e
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Col
()
{
public
void
test
MatLong
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Clone
()
{
public
void
test
PutIntIntByteArray
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -140,31 +152,23 @@ public class MatTest extends OpenCVTestCase {
...
@@ -140,31 +152,23 @@ public class MatTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPutIntIntByteArray
()
{
public
void
testRow
()
{
fail
(
"Not yet implemented"
);
}
public
void
testGetIntIntByteArray
()
{
fail
(
"Not yet implemented"
);
}
public
void
testGetIntIntShortArray
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
GetIntIntIntArray
()
{
public
void
test
RowRange
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
GetIntIntFloatArray
()
{
public
void
test
Rows
()
{
fail
(
"Not yet implemented"
);
assertEquals
(
matSize
,
gray0
.
rows
()
);
}
}
public
void
test
GetIntIntDoubleArray
()
{
public
void
test
SetToDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSetToDoubleDouble
DoubleDouble
()
{
public
void
testSetToDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -172,31 +176,27 @@ public class MatTest extends OpenCVTestCase {
...
@@ -172,31 +176,27 @@ public class MatTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSetToDoubleDouble
()
{
public
void
testSetToDoubleDoubleDoubleDouble
()
{
fail
(
"Not yet implemented"
);
}
public
void
testSetToDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
CopyTo
()
{
public
void
test
Submat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Dot
()
{
public
void
test
ToString
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Cross
()
{
public
void
test
Total
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
Inv
()
{
public
void
test
Type
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
test
GetNativeObjAddr
()
{
public
void
test
Width
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
}
}
modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java
View file @
85166360
package
org
.
opencv
.
test
;
package
org
.
opencv
.
test
;
import
j
ava.io.FileOutputStream
;
import
j
unit.framework.TestCase
;
import
org.opencv.Mat
;
import
org.opencv.Mat
;
import
org.opencv.core
;
import
org.opencv.core
;
import
org.opencv.highgui
;
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
{
public
class
OpenCVTestCase
extends
TestCase
{
static
String
TAG
=
"OpenCV_JavaAPI_Tests"
;
static
String
LENA
=
"/data/data/org.opencv.test/files/lena.jpg"
;
static
String
LENA
=
"/data/data/org.opencv.test/files/lena.jpg"
;
static
int
matSize
=
10
;
static
int
matSize
=
10
;
//Naming notation: channels_[type]_[dimension]_value
static
Mat
dst
;
//Naming notation: <channels info>_[depth]_[dimensions]_value
//examples: gray0 - single channel 8U 2d Mat filled with 0
//examples: gray0 - single channel 8U 2d Mat filled with 0
// grayRnd - single channel 8U 2d Mat filled with random numbers
// grayRnd - single channel 8U 2d Mat filled with random numbers
// gray0_32f_1d - refactor ;)
// gray0_32f_1d - refactor ;)
...
@@ -31,31 +26,30 @@ public class OpenCVTestCase extends AndroidTestCase {
...
@@ -31,31 +26,30 @@ public class OpenCVTestCase extends AndroidTestCase {
static
Mat
gray3
;
static
Mat
gray3
;
static
Mat
gray127
;
static
Mat
gray127
;
static
Mat
gray128
;
static
Mat
gray128
;
static
Mat
gray255
;
static
Mat
gray255
;
static
Mat
grayRnd
;
static
Mat
gray255_32f
;
static
Mat
grayRnd
;
static
Mat
grayRnd_32f
;
static
Mat
gray0_32f
;
static
Mat
gray255_32f
;
static
Mat
grayE_32f
;
static
Mat
grayE_32f
;
static
Mat
grayRnd_32f
;
static
Mat
gray0_32f
;
static
Mat
gray0_32f_1d
;
static
Mat
gray0_32f_1d
;
static
Mat
gray0_64f
;
static
Mat
gray0_64f
;
static
Mat
gray0_64f_1d
;
static
Mat
gray0_64f_1d
;
static
Mat
rgba0
;
static
Mat
rgba128
;
static
Mat
rgbLena
;
static
Mat
rgbLena
;
static
Mat
dst
;
static
Mat
rgba0
;
static
Mat
rgba128
;
@Override
@Override
protected
void
setUp
()
throws
Exception
{
protected
void
setUp
()
throws
Exception
{
super
.
setUp
();
super
.
setUp
();
dst
=
new
Mat
();
assertTrue
(
dst
.
empty
());
gray0
=
new
Mat
(
matSize
,
matSize
,
Mat
.
CvType
.
CV_8UC1
);
gray0
.
setTo
(
0.0
);
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
);
gray1
=
new
Mat
(
matSize
,
matSize
,
Mat
.
CvType
.
CV_8UC1
);
gray1
.
setTo
(
1.0
);
...
@@ -63,41 +57,26 @@ public class OpenCVTestCase extends AndroidTestCase {
...
@@ -63,41 +57,26 @@ public class OpenCVTestCase extends AndroidTestCase {
gray3
=
new
Mat
(
matSize
,
matSize
,
Mat
.
CvType
.
CV_8UC1
);
gray3
.
setTo
(
3.0
);
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
);
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
);
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
=
new
Mat
(
matSize
,
matSize
,
Mat
.
CvType
.
CV_8UC1
);
gray255
.
setTo
(
255.0
);
gray255_32f
=
new
Mat
(
matSize
,
matSize
,
Mat
.
CvType
.
CV_32FC1
);
gray255_32f
.
setTo
(
255.0
);
Mat
low
=
new
Mat
(
1
,
1
,
Mat
.
CvType
.
CV_16UC1
);
low
.
setTo
(
0
);
Mat
low
=
new
Mat
(
1
,
1
,
Mat
.
CvType
.
CV_16UC1
,
0.
0
);
Mat
high
=
new
Mat
(
1
,
1
,
Mat
.
CvType
.
CV_16UC1
);
high
.
setTo
(
256
);
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
=
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
);
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_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
=
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
);
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
);
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
);
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
)
{
public
static
void
assertMatEqual
(
Mat
m1
,
Mat
m2
)
{
...
@@ -114,8 +93,10 @@ public class OpenCVTestCase extends AndroidTestCase {
...
@@ -114,8 +93,10 @@ public class OpenCVTestCase extends AndroidTestCase {
}
}
public
void
test_1
(
String
label
)
{
public
void
test_1
(
String
label
)
{
Log
.
e
(
TAG
,
"================================================"
);
utils
.
Log
(
"================================================"
);
Log
.
e
(
TAG
,
"=============== "
+
label
);
utils
.
Log
(
"=============== "
+
label
);
Log
.
e
(
TAG
,
"================================================"
);
utils
.
Log
(
"================================================"
);
new
utils
().
ExportLena
();
}
}
}
}
modules/java/android_test/src/org/opencv/test/coreTest.java
View file @
85166360
...
@@ -11,61 +11,22 @@ public class coreTest extends OpenCVTestCase {
...
@@ -11,61 +11,22 @@ public class coreTest extends OpenCVTestCase {
super
.
test_1
(
"CORE"
);
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
()
{
public
void
testAbsdiff
()
{
core
.
absdiff
(
gray128
,
gray255
,
dst
);
core
.
absdiff
(
gray128
,
gray255
,
dst
);
assertMatEqual
(
gray127
,
dst
);
assertMatEqual
(
gray127
,
dst
);
}
}
public
void
testAddMatMatMatMatInt
()
{
public
void
testAddMatMatMat
()
{
fail
(
"Not yet implemented"
);
core
.
add
(
gray128
,
gray128
,
dst
);
assertMatEqual
(
gray255
,
dst
);
}
}
public
void
testAddMatMatMatMat
()
{
public
void
testAddMatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAddMatMatMat
()
{
public
void
testAddMatMatMatMatInt
()
{
core
.
add
(
gray128
,
gray128
,
dst
);
fail
(
"Not yet implemented"
);
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
testAddWeightedMatDoubleMatDoubleDoubleMat
()
{
public
void
testAddWeightedMatDoubleMatDoubleDoubleMat
()
{
...
@@ -73,8 +34,9 @@ public class coreTest extends OpenCVTestCase {
...
@@ -73,8 +34,9 @@ public class coreTest extends OpenCVTestCase {
assertMatEqual
(
gray255
,
dst
);
assertMatEqual
(
gray255
,
dst
);
}
}
public
void
testBitwise_andMatMatMatMat
()
{
public
void
testAddWeightedMatDoubleMatDoubleDoubleMatInt
()
{
fail
(
"Not yet implemented"
);
core
.
addWeighted
(
gray1
,
126.0
,
gray127
,
1.0
,
2.0
,
dst
,
gray255_32f
.
depth
());
assertTrue
(
core
.
CV_32F
==
dst
.
depth
());
}
}
public
void
testBitwise_andMatMatMat
()
{
public
void
testBitwise_andMatMatMat
()
{
...
@@ -82,7 +44,7 @@ public class coreTest extends OpenCVTestCase {
...
@@ -82,7 +44,7 @@ public class coreTest extends OpenCVTestCase {
assertMatEqual
(
gray2
,
dst
);
assertMatEqual
(
gray2
,
dst
);
}
}
public
void
testBitwise_
no
tMatMatMat
()
{
public
void
testBitwise_
andMa
tMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -90,7 +52,7 @@ public class coreTest extends OpenCVTestCase {
...
@@ -90,7 +52,7 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testBitwise_
orMa
tMatMatMat
()
{
public
void
testBitwise_
no
tMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -98,7 +60,7 @@ public class coreTest extends OpenCVTestCase {
...
@@ -98,7 +60,7 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testBitwise_
x
orMatMatMatMat
()
{
public
void
testBitwise_orMatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -106,50 +68,42 @@ public class coreTest extends OpenCVTestCase {
...
@@ -106,50 +68,42 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCalcCovarMatrixMatMatMatIntInt
()
{
public
void
testBitwise_xorMatMatMatMat
()
{
Mat
covar
=
new
Mat
(
matSize
,
matSize
,
Mat
.
CvType
.
CV_32FC1
);
fail
(
"Not yet implemented"
);
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
testCalcCovarMatrixMatMatMatInt
()
{
public
void
testCalcCovarMatrixMatMatMatInt
()
{
Mat
covar
=
new
Mat
(
matSize
,
matSize
,
Mat
.
CvType
.
CV_64FC1
);
Mat
covar
=
new
Mat
(
matSize
,
matSize
,
Mat
.
CvType
.
CV_64FC1
);
Mat
mean
=
new
Mat
(
1
,
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
,
covar
);
assertMatEqual
(
gray0_64f_1d
,
mean
);
assertMatEqual
(
gray0_64f_1d
,
mean
);
}
}
public
void
testCartToPolarMatMatMatMatBoolean
()
{
public
void
testCalcCovarMatrixMatMatMatIntInt
()
{
fail
(
"Not yet implemented"
);
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
()
{
public
void
testCartToPolarMatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCartToPolarMatMatMatMatBoolean
()
{
fail
(
"Not yet implemented"
);
}
public
void
testCheckHardwareSupport
()
{
public
void
testCheckHardwareSupport
()
{
//FIXME: do we need this function?
//FIXME: do we need this function?
boolean
hasFeauture
=
core
.
checkHardwareSupport
(
0
);
boolean
hasFeauture
=
core
.
checkHardwareSupport
(
0
);
assertEquals
(
false
,
hasFeauture
);
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
()
{
public
void
testCircleMatPointIntScalar
()
{
Point
center
=
new
Point
(
gray0
.
cols
()
/
2
,
gray0
.
rows
()/
2
);
Point
center
=
new
Point
(
gray0
.
cols
()
/
2
,
gray0
.
rows
()/
2
);
int
radius
=
Math
.
min
(
gray0
.
cols
()/
4
,
gray0
.
rows
()/
4
);
int
radius
=
Math
.
min
(
gray0
.
cols
()/
4
,
gray0
.
rows
()/
4
);
...
@@ -160,6 +114,18 @@ public class coreTest extends OpenCVTestCase {
...
@@ -160,6 +114,18 @@ public class coreTest extends OpenCVTestCase {
assertTrue
(
0
!=
core
.
countNonZero
(
gray0
));
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
()
{
public
void
testCompare
()
{
Mat
cmp
=
new
Mat
(
0
,
0
,
Mat
.
CvType
.
CV_8UC1
);
Mat
cmp
=
new
Mat
(
0
,
0
,
Mat
.
CvType
.
CV_8UC1
);
...
@@ -172,22 +138,22 @@ public class coreTest extends OpenCVTestCase {
...
@@ -172,22 +138,22 @@ public class coreTest extends OpenCVTestCase {
core
.
compare
(
gray0
,
grayRnd
,
cmp
,
core
.
CMP_EQ
);
core
.
compare
(
gray0
,
grayRnd
,
cmp
,
core
.
CMP_EQ
);
double
nBlackPixels
=
core
.
countNonZero
(
cmp
);
double
nBlackPixels
=
core
.
countNonZero
(
cmp
);
double
nNonBlackpixels
=
core
.
countNonZero
(
grayRnd
);
double
nNonBlackpixels
=
core
.
countNonZero
(
grayRnd
);
assertTrue
((
nBlackPixels
+
nNonBlackpixels
)
==
grayRnd
.
rows
()*
grayRnd
.
cols
());
assertTrue
((
nBlackPixels
+
nNonBlackpixels
)
==
grayRnd
.
total
());
}
}
public
void
testCompleteSymmMat
Boolean
()
{
public
void
testCompleteSymmMat
()
{
core
.
completeSymm
(
grayRnd_32f
,
true
);
core
.
completeSymm
(
grayRnd_32f
);
core
.
transpose
(
grayRnd_32f
,
dst
);
core
.
transpose
(
grayRnd_32f
,
dst
);
assertMatEqual
(
grayRnd_32f
,
dst
);
assertMatEqual
(
grayRnd_32f
,
dst
);
}
}
public
void
testCompleteSymmMat
()
{
public
void
testCompleteSymmMat
Boolean
()
{
core
.
completeSymm
(
grayRnd_32f
);
core
.
completeSymm
(
grayRnd_32f
,
true
);
core
.
transpose
(
grayRnd_32f
,
dst
);
core
.
transpose
(
grayRnd_32f
,
dst
);
assertMatEqual
(
grayRnd_32f
,
dst
);
assertMatEqual
(
grayRnd_32f
,
dst
);
}
}
public
void
testConvertScaleAbsMatMat
DoubleDouble
()
{
public
void
testConvertScaleAbsMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -195,7 +161,7 @@ public class coreTest extends OpenCVTestCase {
...
@@ -195,7 +161,7 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testConvertScaleAbsMatMat
()
{
public
void
testConvertScaleAbsMatMat
DoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -210,10 +176,6 @@ public class coreTest extends OpenCVTestCase {
...
@@ -210,10 +176,6 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDctMatMatInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDctMatMat
()
{
public
void
testDctMatMat
()
{
core
.
dct
(
gray0_32f_1d
,
dst
);
core
.
dct
(
gray0_32f_1d
,
dst
);
assertMatEqual
(
gray0_32f_1d
,
dst
);
assertMatEqual
(
gray0_32f_1d
,
dst
);
...
@@ -222,15 +184,20 @@ public class coreTest extends OpenCVTestCase {
...
@@ -222,15 +184,20 @@ public class coreTest extends OpenCVTestCase {
in
.
put
(
0
,
0
,
135.22211
,
50.811096
,
102.27016
,
207.6682
);
in
.
put
(
0
,
0
,
135.22211
,
50.811096
,
102.27016
,
207.6682
);
Mat
out
=
new
Mat
(
1
,
4
,
Mat
.
CvType
.
CV_32FC1
);
Mat
out
=
new
Mat
(
1
,
4
,
Mat
.
CvType
.
CV_32FC1
);
out
.
put
(
0
,
0
,
247.98576
,
-
61.252407
,
94.904533
,
14.013477
);
out
.
put
(
0
,
0
,
247.98576
,
-
61.252407
,
94.904533
,
14.013477
);
core
.
dct
(
in
,
dst
);
core
.
dct
(
in
,
dst
);
assertMatEqual
(
out
,
dst
);
assertMatEqual
(
out
,
dst
);
}
}
public
void
testDctMatMatInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDeterminant
()
{
public
void
testDeterminant
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDftMatMat
IntInt
()
{
public
void
testDftMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -238,15 +205,15 @@ public class coreTest extends OpenCVTestCase {
...
@@ -238,15 +205,15 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDftMatMat
()
{
public
void
testDftMatMat
IntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDivide
MatMatMatDoubleIn
t
()
{
public
void
testDivide
DoubleMatMa
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDivide
MatMatMatDouble
()
{
public
void
testDivide
DoubleMatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -254,27 +221,27 @@ public class coreTest extends OpenCVTestCase {
...
@@ -254,27 +221,27 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDivide
DoubleMatMatInt
()
{
public
void
testDivide
MatMatMatDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDivide
DoubleMatMa
t
()
{
public
void
testDivide
MatMatMatDoubleIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testEllipseMatPointSizeDoubleDoubleDoubleScalar
IntIntInt
()
{
public
void
testEllipseMatPointSizeDoubleDoubleDoubleScalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testEllipseMatPointSizeDoubleDoubleDoubleScalarInt
Int
()
{
public
void
testEllipseMatPointSizeDoubleDoubleDoubleScalarInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testEllipseMatPointSizeDoubleDoubleDoubleScalarInt
()
{
public
void
testEllipseMatPointSizeDoubleDoubleDoubleScalarInt
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testEllipseMatPointSizeDoubleDoubleDoubleScalar
()
{
public
void
testEllipseMatPointSizeDoubleDoubleDoubleScalar
IntIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -295,11 +262,11 @@ public class coreTest extends OpenCVTestCase {
...
@@ -295,11 +262,11 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGemmMatMatDoubleMatDoubleMat
Int
()
{
public
void
testGemmMatMatDoubleMatDoubleMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGemmMatMatDoubleMatDoubleMat
()
{
public
void
testGemmMatMatDoubleMatDoubleMat
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -317,20 +284,20 @@ public class coreTest extends OpenCVTestCase {
...
@@ -317,20 +284,20 @@ public class coreTest extends OpenCVTestCase {
Mat
eConcat
=
new
Mat
(
1
,
9
,
Mat
.
CvType
.
CV_8UC1
);
Mat
eConcat
=
new
Mat
(
1
,
9
,
Mat
.
CvType
.
CV_8UC1
);
e
.
put
(
0
,
0
,
0
,
0
,
1
,
0
,
1
,
0
,
0
,
0
,
1
);
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
);
eConcat
.
put
(
0
,
0
,
0
,
0
,
1
,
0
,
1
,
0
,
0
,
0
,
1
);
core
.
hconcat
(
e
,
dst
);
core
.
hconcat
(
e
,
dst
);
assertMatEqual
(
eConcat
,
dst
);
assertMatEqual
(
eConcat
,
dst
);
}
}
public
void
testIdctMatMat
Int
()
{
public
void
testIdctMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIdctMatMat
()
{
public
void
testIdctMatMat
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIdftMatMat
IntInt
()
{
public
void
testIdftMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -338,7 +305,7 @@ public class coreTest extends OpenCVTestCase {
...
@@ -338,7 +305,7 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIdftMatMat
()
{
public
void
testIdftMatMat
IntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -354,23 +321,11 @@ public class coreTest extends OpenCVTestCase {
...
@@ -354,23 +321,11 @@ public class coreTest extends OpenCVTestCase {
//assertMatEqual(rgba0, rgba128);
//assertMatEqual(rgba0, rgba128);
}
}
public
void
testInvertMatMatInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testInvertMatMat
()
{
public
void
testInvertMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testLineMatPointPointScalarIntIntInt
()
{
public
void
testInvertMatMatInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testLineMatPointPointScalarIntInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testLineMatPointPointScalarInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -386,19 +341,60 @@ public class coreTest extends OpenCVTestCase {
...
@@ -386,19 +341,60 @@ public class coreTest extends OpenCVTestCase {
assertTrue
(
nPoints
==
core
.
countNonZero
(
gray0
));
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
()
{
public
void
testLog
()
{
fail
(
"Not yet implemented"
);
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"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMa
x
()
{
public
void
testMa
gnitude
()
{
fail
(
"Not yet implemented"
);
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"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -406,11 +402,11 @@ public class coreTest extends OpenCVTestCase {
...
@@ -406,11 +402,11 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testM
in
()
{
public
void
testM
eanStdDevMatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testM
ulSpectrumsMatMatMatIntBoolea
n
()
{
public
void
testM
i
n
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -419,17 +415,20 @@ public class coreTest extends OpenCVTestCase {
...
@@ -419,17 +415,20 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMul
TransposedMatMatBooleanMatDoubleInt
()
{
public
void
testMul
SpectrumsMatMatMatIntBoolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMul
TransposedMatMatBooleanMatDouble
()
{
public
void
testMul
tiplyMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMulTransposedMatMatBooleanMat
()
{
public
void
testMultiplyMatMatMatDouble
()
{
core
.
mulTransposed
(
grayRnd_32f
,
dst
,
true
,
grayRnd_32f
);
fail
(
"Not yet implemented"
);
assertMatEqual
(
gray0_32f
,
dst
);
}
public
void
testMultiplyMatMatMatDoubleInt
()
{
fail
(
"Not yet implemented"
);
}
}
public
void
testMulTransposedMatMatBoolean
()
{
public
void
testMulTransposedMatMatBoolean
()
{
...
@@ -437,40 +436,36 @@ public class coreTest extends OpenCVTestCase {
...
@@ -437,40 +436,36 @@ public class coreTest extends OpenCVTestCase {
assertMatEqual
(
grayE_32f
,
dst
);
assertMatEqual
(
grayE_32f
,
dst
);
}
}
public
void
testMultiplyMatMatMatDoubleInt
()
{
public
void
testMulTransposedMatMatBooleanMat
()
{
fail
(
"Not yet implemented"
);
core
.
mulTransposed
(
grayRnd_32f
,
dst
,
true
,
grayRnd_32f
);
assertMatEqual
(
gray0_32f
,
dst
);
}
}
public
void
testMul
tiplyMatMat
MatDouble
()
{
public
void
testMul
TransposedMatMatBoolean
MatDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMul
tiplyMatMatMa
t
()
{
public
void
testMul
TransposedMatMatBooleanMatDoubleIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNorm
MatIn
tMat
()
{
public
void
testNorm
alizeMa
tMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNormMatInt
()
{
public
void
testNormalizeMatMatDouble
()
{
double
n
=
core
.
norm
(
gray127
,
core
.
NORM_INF
);
assertTrue
(
127
==
n
);
}
public
void
testNormMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNorm
MatMatIntMat
()
{
public
void
testNorm
alizeMatMatDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNorm
MatMat
Int
()
{
public
void
testNorm
alizeMatMatDoubleDouble
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNorm
MatMa
t
()
{
public
void
testNorm
alizeMatMatDoubleDoubleIntIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -478,23 +473,28 @@ public class coreTest extends OpenCVTestCase {
...
@@ -478,23 +473,28 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNorm
alizeMatMatDoubleDoubleIntInt
()
{
public
void
testNorm
Mat
()
{
fail
(
"Not yet implemented"
);
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"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNorm
alizeMatMatDoubleDouble
()
{
public
void
testNorm
MatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNorm
alizeMatMatDouble
()
{
public
void
testNorm
MatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNorm
alizeMa
tMat
()
{
public
void
testNorm
MatMatIn
tMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -503,19 +503,19 @@ public class coreTest extends OpenCVTestCase {
...
@@ -503,19 +503,19 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPhaseMatMatMat
Boolean
()
{
public
void
testPhaseMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPhaseMatMatMat
()
{
public
void
testPhaseMatMatMat
Boolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPolarToCartMatMatMatMat
Boolean
()
{
public
void
testPolarToCartMatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPolarToCartMatMatMatMat
()
{
public
void
testPolarToCartMatMatMatMat
Boolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -531,27 +531,27 @@ public class coreTest extends OpenCVTestCase {
...
@@ -531,27 +531,27 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testRectangleMatPointPointScalar
IntIntInt
()
{
public
void
testRectangleMatPointPointScalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testRectangleMatPointPointScalarInt
Int
()
{
public
void
testRectangleMatPointPointScalarInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testRectangleMatPointPointScalarInt
()
{
public
void
testRectangleMatPointPointScalarInt
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testRectangleMatPointPointScalar
()
{
public
void
testRectangleMatPointPointScalar
IntIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testReduceMatMatIntInt
Int
()
{
public
void
testReduceMatMatIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testReduceMatMatIntInt
()
{
public
void
testReduceMatMatIntInt
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -563,20 +563,20 @@ public class coreTest extends OpenCVTestCase {
...
@@ -563,20 +563,20 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSetIdentityMat
Scalar
()
{
public
void
testSetIdentityMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSetIdentityMat
()
{
public
void
testSetIdentityMat
Scalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSetUseOptimized
()
{
public
void
testSetUseOptimized
()
{
//
FIXME
: do we need this function?
//
XXX
: do we need this function?
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSolve
MatMatMatInt
()
{
public
void
testSolve
Cubic
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -584,15 +584,15 @@ public class coreTest extends OpenCVTestCase {
...
@@ -584,15 +584,15 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSolve
Cubic
()
{
public
void
testSolve
MatMatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSolvePolyMatMat
Int
()
{
public
void
testSolvePolyMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSolvePolyMatMat
()
{
public
void
testSolvePolyMatMat
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -608,7 +608,7 @@ public class coreTest extends OpenCVTestCase {
...
@@ -608,7 +608,7 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSubtractMatMatMat
MatInt
()
{
public
void
testSubtractMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
@@ -616,7 +616,7 @@ public class coreTest extends OpenCVTestCase {
...
@@ -616,7 +616,7 @@ public class coreTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSubtractMatMatMat
()
{
public
void
testSubtractMatMatMat
MatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
...
modules/java/android_test/src/org/opencv/test/highguiTest.java
View file @
85166360
package
org
.
opencv
.
test
;
package
org
.
opencv
.
test
;
import
java.io.FileOutputStream
;
import
org.opencv.Mat
;
import
org.opencv.highgui
;
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
{
public
class
highguiTest
extends
OpenCVTestCase
{
...
@@ -39,32 +30,33 @@ public class highguiTest extends OpenCVTestCase {
...
@@ -39,32 +30,33 @@ public class highguiTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testImreadString
Int
()
{
public
void
testImreadString
()
{
dst
=
highgui
.
imread
(
LENA
,
0
);
dst
=
highgui
.
imread
(
LENA
);
assertTrue
(!
dst
.
empty
());
assertTrue
(!
dst
.
empty
());
assertEquals
(
1
,
dst
.
channels
());
assertEquals
(
3
,
dst
.
channels
());
assertTrue
(
512
==
dst
.
cols
());
assertTrue
(
512
==
dst
.
cols
());
assertTrue
(
512
==
dst
.
rows
());
assertTrue
(
512
==
dst
.
rows
());
}
}
public
void
testImreadString
()
{
public
void
testImreadString
Int
()
{
dst
=
highgui
.
imread
(
LENA
);
dst
=
highgui
.
imread
(
LENA
,
0
);
assertTrue
(!
dst
.
empty
());
assertTrue
(!
dst
.
empty
());
assertEquals
(
3
,
dst
.
channels
());
assertEquals
(
1
,
dst
.
channels
());
assertTrue
(
512
==
dst
.
cols
());
assertTrue
(
512
==
dst
.
cols
());
assertTrue
(
512
==
dst
.
rows
());
assertTrue
(
512
==
dst
.
rows
());
}
}
public
void
testImshow
()
{
public
void
testImshow
()
{
//XXX: do we need this function?
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testNamedWindowString
Int
()
{
public
void
testNamedWindowString
()
{
//XXX: do not export this function
//XXX: do not export this function
fail
(
"Do not export this function"
);
fail
(
"Do not export this function"
);
}
}
public
void
testNamedWindowString
()
{
public
void
testNamedWindowString
Int
()
{
//XXX: do not export this function
//XXX: do not export this function
fail
(
"Do not export this function"
);
fail
(
"Do not export this function"
);
}
}
...
@@ -84,12 +76,12 @@ public class highguiTest extends OpenCVTestCase {
...
@@ -84,12 +76,12 @@ public class highguiTest extends OpenCVTestCase {
fail
(
"Do not export this function"
);
fail
(
"Do not export this function"
);
}
}
public
void
testWaitKey
Int
()
{
public
void
testWaitKey
()
{
//XXX: we need this function if only imshow will be implemented
//XXX: we need this function if only imshow will be implemented
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWaitKey
()
{
public
void
testWaitKey
Int
()
{
//XXX: we need this function if only imshow will be implemented
//XXX: we need this function if only imshow will be implemented
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
...
modules/java/android_test/src/org/opencv/test/imgprocTest.java
View file @
85166360
...
@@ -5,640 +5,640 @@ import org.opencv.imgproc;
...
@@ -5,640 +5,640 @@ import org.opencv.imgproc;
public
class
imgprocTest
extends
OpenCVTestCase
{
public
class
imgprocTest
extends
OpenCVTestCase
{
public
void
test_1
()
{
super
.
test_1
(
"IMGPROC"
);
}
public
void
test_1
()
{
//FIXME: this test crashes
super
.
test_1
(
"IMGPROC"
);
//public void test_Can_Call_accumulate() {
}
// dst = new Mat(gray1.rows(), gray1.cols(), Mat.CvType.CV_32FC1);
// imgproc.accumulate(gray1, dst);
//FIXME: this test crashes
// assertMatEqual(gray1, dst);
//public void test_Can_Call_accumulate() {
//}
// dst = new Mat(gray1.rows(), gray1.cols(), Mat.CvType.CV_32FC1);
// imgproc.accumulate(gray1, dst);
public
void
testAccumulateMatMat
()
{
// assertMatEqual(gray1, dst);
fail
(
"Not yet implemented"
);
//}
}
public
void
testCannyMatMatDoubleDoubleIntBoolean
()
{
public
void
testAccumulateMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCannyMatMatDoubleDoubleInt
()
{
public
void
testAccumulateProductMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCannyMatMatDoubleDouble
()
{
public
void
testAccumulateProductMatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGaussianBlurMatMatSizeDoubleDoubleInt
()
{
public
void
testAccumulateSquareMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGaussianBlurMatMatSizeDoubleDouble
()
{
public
void
testAccumulateSquareMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGaussianBlurMatMatSizeDouble
()
{
public
void
testAccumulateWeightedMatMatDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testHoughCirclesMatMatIntDoubleDoubleDoubleDoubleIntInt
()
{
public
void
testAccumulateWeightedMatMatDoubleMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testHoughCirclesMatMatIntDoubleDoubleDoubleDoubleInt
()
{
public
void
testAdaptiveThreshold
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testHoughCirclesMatMatIntDoubleDoubleDoubleDouble
()
{
public
void
testArcLength
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testHoughCirclesMatMatIntDoubleDoubleDouble
()
{
public
void
testBilateralFilterMatMatIntDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testHoughCirclesMatMatIntDoubleDouble
()
{
public
void
testBilateralFilterMatMatIntDoubleDoubleInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testHoughLinesMatMatDoubleDoubleIntDoubleDouble
()
{
public
void
testBlurMatMatSize
()
{
fail
(
"Not yet implemented"
);
Size
sz
=
new
Size
(
3
,
3
);
}
imgproc
.
blur
(
gray0
,
dst
,
sz
);
public
void
testHoughLinesMatMatDoubleDoubleIntDouble
()
{
assertMatEqual
(
gray0
,
dst
);
fail
(
"Not yet implemented"
);
}
imgproc
.
blur
(
gray255
,
dst
,
sz
);
assertMatEqual
(
gray255
,
dst
);
public
void
testHoughLinesMatMatDoubleDoubleInt
()
{
}
fail
(
"Not yet implemented"
);
}
public
void
testBlurMatMatSizePoint
()
{
fail
(
"Not yet implemented"
);
public
void
testHoughLinesPMatMatDoubleDoubleIntDoubleDouble
()
{
}
fail
(
"Not yet implemented"
);
}
public
void
testBlurMatMatSizePointInt
()
{
fail
(
"Not yet implemented"
);
public
void
testHoughLinesPMatMatDoubleDoubleIntDouble
()
{
}
fail
(
"Not yet implemented"
);
}
public
void
testBorderInterpolate
()
{
fail
(
"Not yet implemented"
);
public
void
testHoughLinesPMatMatDoubleDoubleInt
()
{
}
fail
(
"Not yet implemented"
);
}
public
void
testBoxFilterMatMatIntSize
()
{
Size
sz
=
new
Size
(
3
,
3
);
public
void
testLaplacianMatMatIntIntDoubleDoubleInt
()
{
imgproc
.
boxFilter
(
gray0
,
dst
,
8
,
sz
);
fail
(
"Not yet implemented"
);
assertMatEqual
(
gray0
,
dst
);
}
}
public
void
testLaplacianMatMatIntIntDoubleDouble
()
{
public
void
testBoxFilterMatMatIntSizePoint
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testLaplacianMatMatIntIntDouble
()
{
public
void
testBoxFilterMatMatIntSizePointBoolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testLaplacianMatMatIntInt
()
{
public
void
testBoxFilterMatMatIntSizePointBooleanInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testLaplacianMatMatInt
()
{
public
void
testCannyMatMatDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testScharrMatMatIntIntIntDoubleDoubleInt
()
{
public
void
testCannyMatMatDoubleDoubleInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testScharrMatMatIntIntIntDoubleDouble
()
{
public
void
testCannyMatMatDoubleDoubleIntBoolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testScharrMatMatIntIntIntDouble
()
{
public
void
testCompareHist
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testScharrMatMatIntIntInt
()
{
public
void
testContourAreaMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSobelMatMatIntIntIntIntDoubleDoubleInt
()
{
public
void
testContourAreaMatBoolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSobelMatMatIntIntIntIntDoubleDouble
()
{
public
void
testConvertMapsMatMatMatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSobelMatMatIntIntIntIntDouble
()
{
public
void
testConvertMapsMatMatMatMatIntBoolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSobelMatMatIntIntIntInt
()
{
public
void
testCopyMakeBorderMatMatIntIntIntIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSobelMatMatIntIntInt
()
{
public
void
testCopyMakeBorderMatMatIntIntIntIntIntScalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAccumulateMatMatMat
()
{
public
void
testCornerEigenValsAndVecsMatMatIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAccumulateMatMat
()
{
public
void
testCornerEigenValsAndVecsMatMatIntIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAccumulateProductMatMatMatMat
()
{
public
void
testCornerHarrisMatMatIntIntDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAccumulateProductMatMatMat
()
{
public
void
testCornerHarrisMatMatIntIntDoubleInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAccumulateSquareMatMatMat
()
{
public
void
testCornerMinEigenValMatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAccumulateSquareMatMat
()
{
public
void
testCornerMinEigenValMatMatIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAccumulateWeightedMatMatDoubleMat
()
{
public
void
testCornerMinEigenValMatMatIntIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAccumulateWeightedMatMatDouble
()
{
public
void
testCvtColorMatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testAdaptiveThreshold
()
{
public
void
testCvtColorMatMatIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testArcLength
()
{
public
void
testDilateMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testBilateralFilterMatMatIntDoubleDoubleInt
()
{
public
void
testDilateMatMatMatPoint
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testBilateralFilterMatMatIntDoubleDouble
()
{
public
void
testDilateMatMatMatPointInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testBlurMatMatSizePointInt
()
{
public
void
testDilateMatMatMatPointIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testBlurMatMatSizePoint
()
{
public
void
testDilateMatMatMatPointIntIntScalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testBlurMatMatSize
()
{
public
void
testDistanceTransform
()
{
Size
sz
=
new
Size
(
3
,
3
);
fail
(
"Not yet implemented"
);
}
imgproc
.
blur
(
gray0
,
dst
,
sz
);
assertMatEqual
(
gray0
,
dst
);
public
void
testEqualizeHist
()
{
fail
(
"Not yet implemented"
);
imgproc
.
blur
(
gray255
,
dst
,
sz
);
}
assertMatEqual
(
gray255
,
dst
);
}
public
void
testErodeMatMatMat
()
{
fail
(
"Not yet implemented"
);
public
void
testBorderInterpolate
()
{
}
fail
(
"Not yet implemented"
);
}
public
void
testErodeMatMatMatPoint
()
{
fail
(
"Not yet implemented"
);
public
void
testBoxFilterMatMatIntSizePointBooleanInt
()
{
}
fail
(
"Not yet implemented"
);
}
public
void
testErodeMatMatMatPointInt
()
{
fail
(
"Not yet implemented"
);
public
void
testBoxFilterMatMatIntSizePointBoolean
()
{
}
fail
(
"Not yet implemented"
);
}
public
void
testErodeMatMatMatPointIntInt
()
{
fail
(
"Not yet implemented"
);
public
void
testBoxFilterMatMatIntSizePoint
()
{
}
fail
(
"Not yet implemented"
);
}
public
void
testErodeMatMatMatPointIntIntScalar
()
{
fail
(
"Not yet implemented"
);
public
void
testBoxFilterMatMatIntSize
()
{
}
Size
sz
=
new
Size
(
3
,
3
);
imgproc
.
boxFilter
(
gray0
,
dst
,
8
,
sz
);
public
void
testFilter2DMatMatIntMat
()
{
assertMatEqual
(
gray0
,
dst
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCompareHist
()
{
public
void
testFilter2DMatMatIntMatPoint
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testContourAreaMatBoolean
()
{
public
void
testFilter2DMatMatIntMatPointDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testContourAreaMat
()
{
public
void
testFilter2DMatMatIntMatPointDoubleInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testConvertMapsMatMatMatMatIntBoolean
()
{
public
void
testGaussianBlurMatMatSizeDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testConvertMapsMatMatMatMatInt
()
{
public
void
testGaussianBlurMatMatSizeDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCopyMakeBorderMatMatIntIntIntIntIntScalar
()
{
public
void
testGaussianBlurMatMatSizeDoubleDoubleInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCopyMakeBorderMatMatIntIntIntIntInt
()
{
public
void
testGetDefaultNewCameraMatrixMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCornerEigenValsAndVecsMatMatIntIntInt
()
{
public
void
testGetDefaultNewCameraMatrixMatSize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCornerEigenValsAndVecsMatMatIntInt
()
{
public
void
testGetDefaultNewCameraMatrixMatSizeBoolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCornerHarrisMatMatIntIntDoubleInt
()
{
public
void
testGetDerivKernelsMatMatIntIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCornerHarrisMatMatIntIntDouble
()
{
public
void
testGetDerivKernelsMatMatIntIntIntBoolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCornerMinEigenValMatMatIntIntInt
()
{
public
void
testGetDerivKernelsMatMatIntIntIntBooleanInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCornerMinEigenValMatMatIntInt
()
{
public
void
testGetGaussianKernelIntDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCornerMinEigenValMatMatInt
()
{
public
void
testGetGaussianKernelIntDoubleInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCvtColorMatMatIntInt
()
{
public
void
testGetRectSubPixMatSizePointMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCvtColorMatMatInt
()
{
public
void
testGetRectSubPixMatSizePointMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDilateMatMatMatPointIntIntScalar
()
{
public
void
testGetRotationMatrix2D
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDilateMatMatMatPointIntInt
()
{
public
void
testGetStructuringElementIntSize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDilateMatMatMatPointInt
()
{
fail
(
"Not yet implemented"
);
}
public
void
testDilateMatMatMat
Point
()
{
public
void
testGetStructuringElementIntSize
Point
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDilateMatMatMat
()
{
public
void
testGoodFeaturesToTrackMatMatIntDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testDistanceTransform
()
{
public
void
testGoodFeaturesToTrackMatMatIntDoubleDoubleMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testEqualizeHis
t
()
{
public
void
testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testErodeMatMatMatPointIntIntScalar
()
{
public
void
testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIntBoolean
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testErodeMatMatMatPointIntInt
()
{
public
void
testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIntBooleanDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testErodeMatMatMatPoin
tInt
()
{
public
void
testGrabCutMatMatRectMatMa
tInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testErodeMatMatMatPoi
nt
()
{
public
void
testGrabCutMatMatRectMatMatIntI
nt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testErodeMatMatMat
()
{
public
void
testHoughCirclesMatMatIntDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testFilter2DMatMatIntMatPointDoubleInt
()
{
public
void
testHoughCirclesMatMatIntDoubleDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testFilter2DMatMatIntMatPoint
Double
()
{
public
void
testHoughCirclesMatMatIntDoubleDoubleDouble
Double
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testFilter2DMatMatIntMatPoi
nt
()
{
public
void
testHoughCirclesMatMatIntDoubleDoubleDoubleDoubleI
nt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testFilter2DMatMatIntMa
t
()
{
public
void
testHoughCirclesMatMatIntDoubleDoubleDoubleDoubleIntIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetDefaultNewCameraMatrixMatSizeBoolean
()
{
public
void
testHoughLinesMatMatDoubleDoubleInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetDefaultNewCameraMatrixMatSiz
e
()
{
public
void
testHoughLinesMatMatDoubleDoubleIntDoubl
e
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetDefaultNewCameraMatrixMat
()
{
public
void
testHoughLinesMatMatDoubleDoubleIntDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetDerivKernelsMatMatIntIntIntBoolean
Int
()
{
public
void
testHoughLinesPMatMatDoubleDouble
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetDerivKernelsMatMatIntIntIntBoolean
()
{
public
void
testHoughLinesPMatMatDoubleDoubleIntDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetDerivKernelsMatMatIntIntInt
()
{
public
void
testHoughLinesPMatMatDoubleDoubleIntDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetGaussianKernelIntDoubleInt
()
{
public
void
testInitUndistortRectifyMap
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetGaussianKernelIntDouble
()
{
public
void
testInitWideAngleProjMapMatMatSizeIntIntMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetRectSubPixMatSizePoin
tMatInt
()
{
public
void
testInitWideAngleProjMapMatMatSizeIntIntMa
tMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetRectSubPixMatSizePointMat
()
{
public
void
testInitWideAngleProjMapMatMatSizeIntIntMatMatIntDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetRotationMatrix2D
()
{
public
void
testInpaint
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetStructuringElementIntSizePoin
t
()
{
public
void
testIntegral2MatMatMa
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGetStructuringElementIntSize
()
{
public
void
testIntegral2MatMatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIntBooleanDouble
()
{
public
void
testIntegral3MatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIntBoolean
()
{
public
void
testIntegral3MatMatMatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGoodFeaturesToTrackMatMatIntDoubleDoubleMatIn
t
()
{
public
void
testIntegralMatMa
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGoodFeaturesToTrackMatMatIntDoubleDoubleMa
t
()
{
public
void
testIntegralMatMatIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGoodFeaturesToTrackMatMatIntDoubleDouble
()
{
public
void
testInvertAffineTransform
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGrabCutMatMatRectMatMatIntInt
()
{
public
void
testIsContourConvex
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testGrabCutMatMatRect
MatMatInt
()
{
public
void
testLaplacian
MatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testInitUndistortRectifyMap
()
{
public
void
testLaplacianMatMatIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testInitWideAngleProjMapMatMatSizeIntIntMatMa
tIntDouble
()
{
public
void
testLaplacianMatMatIn
tIntDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testInitWideAngleProjMapMatMatSizeIntIntMatMatInt
()
{
public
void
testLaplacianMatMatIntIntDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testInitWideAngleProjMapMatMatSizeIntIntMatMa
t
()
{
public
void
testLaplacianMatMatIntIntDoubleDoubleIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testInpaint
()
{
public
void
testMatchShapes
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIntegralMatMatInt
()
{
public
void
testMatchTemplate
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIntegralMatMat
()
{
public
void
testMedianBlur
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIntegral2MatMatMatIn
t
()
{
public
void
testMorphologyExMatMatIntMa
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIntegral2MatMatMa
t
()
{
public
void
testMorphologyExMatMatIntMatPoin
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIntegral3MatMatMatMa
tInt
()
{
public
void
testMorphologyExMatMatIntMatPoin
tInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIntegral3MatMatMatMa
t
()
{
public
void
testMorphologyExMatMatIntMatPointIntIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testInvertAffineTransform
()
{
public
void
testMorphologyExMatMatIntMatPointIntIntScalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testIsContourConvex
()
{
public
void
testPointPolygonTest
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMatchShapes
()
{
public
void
testPreCornerDetectMatMatInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMatchTemplate
()
{
public
void
testPreCornerDetectMatMatIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMedianBlur
()
{
public
void
testPyrDownMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMorphologyExMatMatIntMatPointIntIntScalar
()
{
public
void
testPyrDownMatMatSize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMorphologyExMatMatIntMatPointIntIn
t
()
{
public
void
testPyrUpMatMa
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMorphologyExMatMatIntMatPointInt
()
{
public
void
testPyrUpMatMatSize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMorphologyExMatMatIntMatPoi
nt
()
{
public
void
testRemapMatMatMatMatI
nt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testMorphologyExMatMatIntMa
t
()
{
public
void
testRemapMatMatMatMatIntIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPointPolygonTest
()
{
public
void
testRemapMatMatMatMatIntIntScalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPreCornerDetectMatMatIntInt
()
{
public
void
testResizeMatMatSize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPreCornerDetectMatMatInt
()
{
public
void
testResizeMatMatSizeDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPyrDownMatMatSiz
e
()
{
public
void
testResizeMatMatSizeDoubleDoubl
e
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPyrDownMatMa
t
()
{
public
void
testResizeMatMatSizeDoubleDoubleIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPyrUpMatMatSize
()
{
public
void
testScharrMatMatIntIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testPyrUpMatMat
()
{
public
void
testScharrMatMatIntIntIntDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testRemapMatMatMatMatIntIntScalar
()
{
public
void
testScharrMatMatIntIntIntDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testRemapMatMatMatMatInt
Int
()
{
public
void
testScharrMatMatIntIntIntDoubleDouble
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testRemapMatMatMatMatIn
t
()
{
public
void
testSepFilter2DMatMatIntMatMa
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testResizeMatMatSizeDoubleDoubleI
nt
()
{
public
void
testSepFilter2DMatMatIntMatMatPoi
nt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testResizeMatMatSizeDouble
Double
()
{
public
void
testSepFilter2DMatMatIntMatMatPoint
Double
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testResizeMatMatSizeDouble
()
{
public
void
testSepFilter2DMatMatIntMatMatPointDoubleInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testResizeMatMatSize
()
{
public
void
testSobelMatMatIntIntInt
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSepFilter2DMatMatIntMatMatPointDouble
Int
()
{
public
void
testSobelMatMatIntIntInt
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSepFilter2DMatMatIntMatMatPoi
ntDouble
()
{
public
void
testSobelMatMatIntIntIntI
ntDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSepFilter2DMatMatIntMatMatPoint
()
{
public
void
testSobelMatMatIntIntIntIntDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testSepFilter2DMatMatIntMatMa
t
()
{
public
void
testSobelMatMatIntIntIntIntDoubleDoubleIn
t
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testThreshold
()
{
public
void
testThreshold
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testUndistortMa
tMatMatMatMat
()
{
public
void
testUndistor
tMatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testUndistor
tMatMatMatMat
()
{
public
void
testUndistortMa
tMatMatMatMat
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWarpAffineMatMatMatSizeIntIntScalar
()
{
public
void
testWarpAffineMatMatMatSize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWarpAffineMatMatMatSizeInt
Int
()
{
public
void
testWarpAffineMatMatMatSize
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWarpAffineMatMatMatSize
Int
()
{
public
void
testWarpAffineMatMatMatSizeInt
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWarpAffineMatMatMatSize
()
{
public
void
testWarpAffineMatMatMatSizeIntIntScalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWarpPerspectiveMatMatMatSizeIntIntScalar
()
{
public
void
testWarpPerspectiveMatMatMatSize
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWarpPerspectiveMatMatMatSizeInt
Int
()
{
public
void
testWarpPerspectiveMatMatMatSize
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWarpPerspectiveMatMatMatSize
Int
()
{
public
void
testWarpPerspectiveMatMatMatSizeInt
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWarpPerspectiveMatMatMatSize
()
{
public
void
testWarpPerspectiveMatMatMatSizeIntIntScalar
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testWatershed
()
{
public
void
testWatershed
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
}
}
modules/java/android_test/src/org/opencv/test/utils.java
0 → 100644
View file @
85166360
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
());
}
}
}
modules/java/android_test/src/org/opencv/test/videoTest.java
View file @
85166360
...
@@ -7,11 +7,11 @@ public class videoTest extends OpenCVTestCase {
...
@@ -7,11 +7,11 @@ public class videoTest extends OpenCVTestCase {
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCalcMotionGradientMatMatMatDoubleDouble
Int
()
{
public
void
testCalcMotionGradientMatMatMatDoubleDouble
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
public
void
testCalcMotionGradientMatMatMatDoubleDouble
()
{
public
void
testCalcMotionGradientMatMatMatDoubleDouble
Int
()
{
fail
(
"Not yet implemented"
);
fail
(
"Not yet implemented"
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment