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
55e71a5c
Commit
55e71a5c
authored
Jul 25, 2011
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a couple of new smoke tests; Mat.java code clean-up
parent
322b09fc
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
5 deletions
+24
-5
MatTest.java
...s/java/android_test/src/org/opencv/test/core/MatTest.java
+6
-2
coreTest.java
.../java/android_test/src/org/opencv/test/core/coreTest.java
+18
-3
core+Mat.java
modules/java/src/java/core+Mat.java
+0
-0
No files found.
modules/java/android_test/src/org/opencv/test/core/MatTest.java
View file @
55e71a5c
...
...
@@ -60,8 +60,12 @@ public class MatTest extends OpenCVTestCase {
assertEquals
(
CvType
.
CV_32F
,
gray0_32f
.
depth
());
}
public
void
testDispose
()
{
fail
(
"Not yet implemented"
);
public
void
testRelease
()
{
assertTrue
(
gray0
.
empty
()
==
false
);
assertTrue
(
gray0
.
rows
()
>
0
);
gray0
.
release
();
assertTrue
(
gray0
.
empty
()
==
true
);
assertTrue
(
gray0
.
rows
()
==
0
);
}
public
void
testDot
()
{
...
...
modules/java/android_test/src/org/opencv/test/core/coreTest.java
View file @
55e71a5c
...
...
@@ -161,16 +161,31 @@ public class coreTest extends OpenCVTestCase {
Scalar
color
=
new
Scalar
(
128
);
assertTrue
(
0
==
Core
.
countNonZero
(
gray0
));
Core
.
circle
(
gray0
,
center
,
radius
,
color
,
-
1
);
Core
.
circle
(
gray0
,
center
,
radius
,
color
,
-
1
/*filled circle*/
);
assertTrue
(
0
!=
Core
.
countNonZero
(
gray0
));
}
public
void
testCircleMatPointIntScalarIntInt
()
{
fail
(
"Not yet implemented"
);
Point
center
=
new
Point
(
gray0
.
cols
()
/
2
,
gray0
.
rows
()/
2
);
int
radius
=
Math
.
min
(
gray0
.
cols
()/
4
,
gray0
.
rows
()/
4
);
Scalar
color
=
new
Scalar
(
128
);
assertTrue
(
0
==
Core
.
countNonZero
(
gray0
));
Core
.
circle
(
gray0
,
center
,
radius
,
color
,
2
,
4
/*4-connected line*/
);
assertTrue
(
0
!=
Core
.
countNonZero
(
gray0
));
}
public
void
testCircleMatPointIntScalarIntIntInt
()
{
fail
(
"Not yet implemented"
);
Point
center
=
new
Point
(
gray0
.
cols
()
/
2
,
gray0
.
rows
()/
2
);
Point
center2
=
new
Point
(
gray0
.
cols
(),
gray0
.
rows
());
int
radius
=
Math
.
min
(
gray0
.
cols
()/
4
,
gray0
.
rows
()/
4
);
Scalar
color128
=
new
Scalar
(
128
);
Scalar
color0
=
new
Scalar
(
0
);
assertTrue
(
0
==
Core
.
countNonZero
(
gray0
));
Core
.
circle
(
gray0
,
center2
,
radius
*
2
,
color128
,
2
,
4
,
1
/*Number of fractional bits*/
);
Core
.
circle
(
gray0
,
center
,
radius
,
color0
,
2
,
4
,
0
);
assertTrue
(
0
==
Core
.
countNonZero
(
gray0
));
}
public
void
testClipLine
()
{
...
...
modules/java/src/java/core+Mat.java
View file @
55e71a5c
This diff is collapsed.
Click to expand it.
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