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
6d165dae
Commit
6d165dae
authored
Aug 25, 2018
by
Suleyman TURKMEN
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
related moved enums
parent
335e61dc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
9 deletions
+6
-9
gen_dict.json
modules/imgproc/misc/java/gen_dict.json
+0
-3
ImgprocTest.java
modules/imgproc/misc/java/test/ImgprocTest.java
+2
-2
PhotoTest.java
modules/photo/misc/java/test/PhotoTest.java
+2
-2
BackgroundSubtractorMOGTest.java
...les/video/misc/java/test/BackgroundSubtractorMOGTest.java
+2
-2
No files found.
modules/imgproc/misc/java/gen_dict.json
View file @
6d165dae
...
@@ -25,9 +25,6 @@
...
@@ -25,9 +25,6 @@
[
"IPL_BORDER_WRAP"
,
3
],
[
"IPL_BORDER_WRAP"
,
3
],
[
"IPL_BORDER_REFLECT_101"
,
4
],
[
"IPL_BORDER_REFLECT_101"
,
4
],
[
"IPL_BORDER_TRANSPARENT"
,
5
]
[
"IPL_BORDER_TRANSPARENT"
,
5
]
],
"public"
:
[
[
"LINE_AA"
,
16
],
[
"LINE_8"
,
8
],
[
"LINE_4"
,
4
]
]
]
}
}
},
},
...
...
modules/imgproc/misc/java/test/ImgprocTest.java
View file @
6d165dae
...
@@ -584,7 +584,7 @@ public class ImgprocTest extends OpenCVTestCase {
...
@@ -584,7 +584,7 @@ public class ImgprocTest extends OpenCVTestCase {
Point
truthPosition
=
new
Point
(
img
.
cols
()
/
2
,
img
.
rows
()
/
2
);
Point
truthPosition
=
new
Point
(
img
.
cols
()
/
2
,
img
.
rows
()
/
2
);
Rect
r
=
new
Rect
(
new
Point
(
0
,
0
),
truthPosition
);
Rect
r
=
new
Rect
(
new
Point
(
0
,
0
),
truthPosition
);
Imgproc
.
rectangle
(
img
,
r
.
tl
(),
r
.
br
(),
new
Scalar
(
0
),
Core
.
FILLED
);
Imgproc
.
rectangle
(
img
,
r
.
tl
(),
r
.
br
(),
new
Scalar
(
0
),
Imgproc
.
FILLED
);
MatOfPoint2f
corners
=
new
MatOfPoint2f
(
new
Point
(
truthPosition
.
x
+
1
,
truthPosition
.
y
+
1
));
MatOfPoint2f
corners
=
new
MatOfPoint2f
(
new
Point
(
truthPosition
.
x
+
1
,
truthPosition
.
y
+
1
));
Size
winSize
=
new
Size
(
2
,
2
);
Size
winSize
=
new
Size
(
2
,
2
);
Size
zeroZone
=
new
Size
(-
1
,
-
1
);
Size
zeroZone
=
new
Size
(-
1
,
-
1
);
...
@@ -657,7 +657,7 @@ public class ImgprocTest extends OpenCVTestCase {
...
@@ -657,7 +657,7 @@ public class ImgprocTest extends OpenCVTestCase {
List
<
MatOfPoint
>
contours
=
new
ArrayList
<
MatOfPoint
>();
List
<
MatOfPoint
>
contours
=
new
ArrayList
<
MatOfPoint
>();
Imgproc
.
findContours
(
gray0
,
contours
,
new
Mat
(),
Imgproc
.
RETR_EXTERNAL
,
Imgproc
.
CHAIN_APPROX_SIMPLE
);
Imgproc
.
findContours
(
gray0
,
contours
,
new
Mat
(),
Imgproc
.
RETR_EXTERNAL
,
Imgproc
.
CHAIN_APPROX_SIMPLE
);
Imgproc
.
drawContours
(
gray0
,
contours
,
-
1
,
new
Scalar
(
0
),
Core
.
FILLED
);
Imgproc
.
drawContours
(
gray0
,
contours
,
-
1
,
new
Scalar
(
0
),
Imgproc
.
FILLED
);
assertEquals
(
0
,
Core
.
countNonZero
(
gray0
));
assertEquals
(
0
,
Core
.
countNonZero
(
gray0
));
}
}
...
...
modules/photo/misc/java/test/PhotoTest.java
View file @
6d165dae
...
@@ -11,8 +11,8 @@ public class PhotoTest extends OpenCVTestCase {
...
@@ -11,8 +11,8 @@ public class PhotoTest extends OpenCVTestCase {
public
void
testInpaint
()
{
public
void
testInpaint
()
{
Point
p
=
new
Point
(
matSize
/
2
,
matSize
/
2
);
Point
p
=
new
Point
(
matSize
/
2
,
matSize
/
2
);
Imgproc
.
circle
(
gray255
,
p
,
2
,
colorBlack
,
Core
.
FILLED
);
Imgproc
.
circle
(
gray255
,
p
,
2
,
colorBlack
,
Imgproc
.
FILLED
);
Imgproc
.
circle
(
gray0
,
p
,
2
,
colorWhite
,
Core
.
FILLED
);
Imgproc
.
circle
(
gray0
,
p
,
2
,
colorWhite
,
Imgproc
.
FILLED
);
Photo
.
inpaint
(
gray255
,
gray0
,
dst
,
3
,
Photo
.
INPAINT_TELEA
);
Photo
.
inpaint
(
gray255
,
gray0
,
dst
,
3
,
Photo
.
INPAINT_TELEA
);
...
...
modules/video/misc/java/test/BackgroundSubtractorMOGTest.java
View file @
6d165dae
...
@@ -14,12 +14,12 @@ public class BackgroundSubtractorMOGTest extends OpenCVTestCase {
...
@@ -14,12 +14,12 @@ public class BackgroundSubtractorMOGTest extends OpenCVTestCase {
Scalar color = new Scalar(128);
Scalar color = new Scalar(128);
Mat mask = new Mat(rgbLena.size(), CvType.CV_16UC3, new Scalar(1));
Mat mask = new Mat(rgbLena.size(), CvType.CV_16UC3, new Scalar(1));
Imgproc.rectangle(rgbLena, bottomRight, topLeft, color,
Core
.FILLED);
Imgproc.rectangle(rgbLena, bottomRight, topLeft, color,
Imgproc
.FILLED);
backGroundSubtract.apply(rgbLena, mask);
backGroundSubtract.apply(rgbLena, mask);
Mat truth = new Mat(rgbLena.size(), rgbLena.type(), new Scalar(0));
Mat truth = new Mat(rgbLena.size(), rgbLena.type(), new Scalar(0));
Imgproc.rectangle(truth, bottomRight, topLeft, color,
Core
.FILLED);
Imgproc.rectangle(truth, bottomRight, topLeft, color,
Imgproc
.FILLED);
assertMatEqual(truth, rgbLena);
assertMatEqual(truth, rgbLena);
*/
*/
}
}
...
...
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