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
3d61f5bd
Commit
3d61f5bd
authored
Dec 21, 2011
by
Andrey Kamaev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed 2 more tests for Java API
parent
e9dffe13
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
10 deletions
+8
-10
CoreTest.java
.../java/android_test/src/org/opencv/test/core/CoreTest.java
+0
-2
ImgprocTest.java
...android_test/src/org/opencv/test/imgproc/ImgprocTest.java
+4
-4
VideoTest.java
...ava/android_test/src/org/opencv/test/video/VideoTest.java
+4
-4
No files found.
modules/java/android_test/src/org/opencv/test/core/CoreTest.java
View file @
3d61f5bd
...
...
@@ -12,7 +12,6 @@ import org.opencv.core.Scalar;
import
org.opencv.core.Size
;
import
org.opencv.core.TermCriteria
;
import
org.opencv.test.OpenCVTestCase
;
import
org.opencv.test.OpenCVTestRunner
;
import
java.util.ArrayList
;
import
java.util.Arrays
;
...
...
@@ -742,7 +741,6 @@ public class CoreTest extends OpenCVTestCase {
assertTrue
(
gray0
.
total
()
>
Core
.
countNonZero
(
gray0
));
Core
.
fillConvexPoly
(
gray0
,
polyline2
,
colorBlack
,
Core
.
LINE_8
,
1
);
OpenCVTestRunner
.
Log
(
gray0
);
assertEquals
(
"see https://code.ros.org/trac/opencv/ticket/1284"
,
0
,
Core
.
countNonZero
(
gray0
));
}
...
...
modules/java/android_test/src/org/opencv/test/imgproc/ImgprocTest.java
View file @
3d61f5bd
...
...
@@ -1780,10 +1780,10 @@ public class ImgprocTest extends OpenCVTestCase {
truth
=
new
Mat
(
4
,
4
,
CvType
.
CV_32F
)
{
{
put
(
0
,
0
,
2
,
1.75
,
1.375
,
1.25
);
put
(
1
,
0
,
2.25
,
2
,
1.625
,
1.5
);
put
(
2
,
0
,
2.
5
,
2.25
,
1.875
,
1.
75
);
put
(
3
,
0
,
2.
25
,
2
,
1.625
,
1.5
);
put
(
0
,
0
,
2
,
1.75
,
1.375
,
1.25
);
put
(
1
,
0
,
2.25
,
2
,
1.625
,
1.5
);
put
(
2
,
0
,
2.
625
,
2.375
,
2
,
1.8
75
);
put
(
3
,
0
,
2.
75
,
2.5
,
2.125
,
2
);
}
};
assertMatEqual
(
truth
,
dst
,
EPS
);
...
...
modules/java/android_test/src/org/opencv/test/video/VideoTest.java
View file @
3d61f5bd
package
org
.
opencv
.
test
.
video
;
import
java.util.ArrayList
;
import
java.util.List
;
import
org.opencv.core.Core
;
import
org.opencv.core.Mat
;
import
org.opencv.core.Point
;
...
...
@@ -11,6 +8,9 @@ import org.opencv.test.OpenCVTestCase;
import
org.opencv.utils.Converters
;
import
org.opencv.video.Video
;
import
java.util.ArrayList
;
import
java.util.List
;
public
class
VideoTest
extends
OpenCVTestCase
{
private
List
<
Float
>
err
=
null
;
...
...
@@ -39,7 +39,7 @@ public class VideoTest extends OpenCVTestCase {
subLena2
=
rgbLena
.
submat
(
shift2
,
h
+
shift2
,
shift2
,
w
+
shift2
);
prevPts
=
new
ArrayList
<
Point
>();
prevPts
.
add
(
new
Point
(
1
.0
,
1
.0
));
prevPts
.
add
(
new
Point
(
1
1.0
,
8
.0
));
prevPts
.
add
(
new
Point
(
5.0
,
5.0
));
prevPts
.
add
(
new
Point
(
10.0
,
10.0
));
...
...
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