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
36a5b6e2
Commit
36a5b6e2
authored
Aug 02, 2011
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java API: tests are updated after randu/randn args types changes
parent
96ca253a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
OpenCVTestCase.java
...java/android_test/src/org/opencv/test/OpenCVTestCase.java
+2
-2
coreTest.java
.../java/android_test/src/org/opencv/test/core/coreTest.java
+4
-4
No files found.
modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java
View file @
36a5b6e2
...
...
@@ -92,7 +92,7 @@ public class OpenCVTestCase extends TestCase {
gray_16s_1024
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_16S
,
new
Scalar
(
1024
));
grayRnd
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
Core
.
randu
(
grayRnd
,
new
Scalar
(
0
),
new
Scalar
(
256
)
);
Core
.
randu
(
grayRnd
,
0
,
256
);
gray0_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
,
new
Scalar
(
0.0
));
gray1_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
,
new
Scalar
(
1.0
));
...
...
@@ -103,7 +103,7 @@ public class OpenCVTestCase extends TestCase {
grayE_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
);
grayE_32f
=
Mat
.
eye
(
matSize
,
matSize
,
CvType
.
CV_32FC1
);
grayRnd_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
);
Core
.
randu
(
grayRnd_32f
,
new
Scalar
(
0
),
new
Scalar
(
256
)
);
Core
.
randu
(
grayRnd_32f
,
0
,
256
);
gray0_32f_1d
=
new
Mat
(
1
,
matSize
,
CvType
.
CV_32F
,
new
Scalar
(
0.0
));
...
...
modules/java/android_test/src/org/opencv/test/core/coreTest.java
View file @
36a5b6e2
...
...
@@ -1156,7 +1156,7 @@ public class coreTest extends OpenCVTestCase {
public
void
testPerspectiveTransform
()
{
Mat
src
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32FC2
);
Core
.
randu
(
src
,
new
Scalar
(
0
),
new
Scalar
(
256
)
);
Core
.
randu
(
src
,
0
,
256
);
//FIXME: use Mat.diag
Mat
transformMatrix
=
Mat
.
eye
(
3
,
3
,
CvType
.
CV_32F
);
...
...
@@ -1169,7 +1169,7 @@ public class coreTest extends OpenCVTestCase {
public
void
testPerspectiveTransform3D
()
{
Mat
src
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32FC3
);
Core
.
randu
(
src
,
new
Scalar
(
0
),
new
Scalar
(
256
)
);
Core
.
randu
(
src
,
0
,
256
);
Mat
transformMatrix
=
Mat
.
eye
(
4
,
4
,
CvType
.
CV_32F
);
...
...
@@ -1304,7 +1304,7 @@ public class coreTest extends OpenCVTestCase {
public
void
testRandn
()
{
assertTrue
(
0
==
Core
.
countNonZero
(
gray0
));
Core
.
randn
(
gray0
,
new
Scalar
(
0
),
new
Scalar
(
256
)
);
Core
.
randn
(
gray0
,
0
,
256
);
assertTrue
(
0
!=
Core
.
countNonZero
(
gray0
));
}
...
...
@@ -1318,7 +1318,7 @@ public class coreTest extends OpenCVTestCase {
public
void
testRandu
()
{
assertTrue
(
0
==
Core
.
countNonZero
(
gray0
));
Core
.
randu
(
gray0
,
new
Scalar
(
0
),
new
Scalar
(
256
)
);
Core
.
randu
(
gray0
,
0
,
256
);
assertTrue
(
0
!=
Core
.
countNonZero
(
gray0
));
}
...
...
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