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
6aab128a
Commit
6aab128a
authored
Jul 06, 2011
by
itsyplen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java tests: commited some core tests (to be cleaned)
parent
9c8aafba
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
OpenCVTestCase.java
...java/android_test/src/org/opencv/test/OpenCVTestCase.java
+12
-0
coreTest.java
modules/java/android_test/src/org/opencv/test/coreTest.java
+0
-0
No files found.
modules/java/android_test/src/org/opencv/test/OpenCVTestCase.java
View file @
6aab128a
...
...
@@ -24,12 +24,18 @@ public class OpenCVTestCase extends TestCase {
static
Mat
gray1
;
static
Mat
gray2
;
static
Mat
gray3
;
static
Mat
gray9
;
static
Mat
gray127
;
static
Mat
gray128
;
static
Mat
gray255
;
static
Mat
grayRnd
;
static
Mat
gray256
;
static
Mat
gray0_32f
;
static
Mat
gray1_32f
;
static
Mat
gray3_32f
;
static
Mat
gray9_32f
;
static
Mat
gray255_32f
;
static
Mat
grayE_32f
;
static
Mat
grayRnd_32f
;
...
...
@@ -55,15 +61,21 @@ public class OpenCVTestCase extends TestCase {
gray1
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
gray1
.
setTo
(
new
Scalar
(
1.0
));
gray2
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
gray2
.
setTo
(
new
Scalar
(
2.0
));
gray3
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
gray3
.
setTo
(
new
Scalar
(
3.0
));
gray9
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
gray9
.
setTo
(
new
Scalar
(
9.0
));
gray127
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
gray127
.
setTo
(
new
Scalar
(
127.0
));
gray128
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
gray128
.
setTo
(
new
Scalar
(
128.0
));
gray255
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
gray255
.
setTo
(
new
Scalar
(
255.0
));
gray256
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_16U
);
gray255
.
setTo
(
new
Scalar
(
256
));
Mat
low
=
new
Mat
(
1
,
1
,
CvType
.
CV_16UC1
,
new
Scalar
(
0
));
Mat
high
=
new
Mat
(
1
,
1
,
CvType
.
CV_16UC1
,
new
Scalar
(
256
));
grayRnd
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_8U
);
core
.
randu
(
grayRnd
,
low
,
high
);
gray0_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
);
gray0_32f
.
setTo
(
new
Scalar
(
0.0
));
gray1_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
);
gray1_32f
.
setTo
(
new
Scalar
(
1.0
));
gray3_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
);
gray3_32f
.
setTo
(
new
Scalar
(
3.0
));
gray9_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
);
gray9_32f
.
setTo
(
new
Scalar
(
9.0
));
gray255_32f
=
new
Mat
(
matSize
,
matSize
,
CvType
.
CV_32F
);
gray255_32f
.
setTo
(
new
Scalar
(
255.0
));
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
,
low
,
high
);
...
...
modules/java/android_test/src/org/opencv/test/coreTest.java
View file @
6aab128a
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