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
96e2126a
Commit
96e2126a
authored
May 23, 2019
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #14602 from asashour:java_lang_
parents
def8fa22
f3319f61
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
10 deletions
+8
-10
core+CvType.java
modules/core/misc/java/src/java/core+CvType.java
+4
-4
core+Mat.java
modules/core/misc/java/src/java/core+Mat.java
+0
-0
imgproc+Moments.java
modules/imgproc/misc/java/src/java/imgproc+Moments.java
+0
-2
Utils.java
...java/generator/android/java/org/opencv/android/Utils.java
+4
-4
Converters.java
.../java/generator/src/java/org/opencv/utils/Converters.java
+0
-0
No files found.
modules/core/misc/java/src/java/core+CvType.java
View file @
96e2126a
...
...
@@ -25,11 +25,11 @@ public final class CvType {
public
static
final
int
makeType
(
int
depth
,
int
channels
)
{
if
(
channels
<=
0
||
channels
>=
CV_CN_MAX
)
{
throw
new
java
.
lang
.
UnsupportedOperationException
(
throw
new
UnsupportedOperationException
(
"Channels count should be 1.."
+
(
CV_CN_MAX
-
1
));
}
if
(
depth
<
0
||
depth
>=
CV_DEPTH_MAX
)
{
throw
new
java
.
lang
.
UnsupportedOperationException
(
throw
new
UnsupportedOperationException
(
"Data type depth should be 0.."
+
(
CV_DEPTH_MAX
-
1
));
}
return
(
depth
&
(
CV_DEPTH_MAX
-
1
))
+
((
channels
-
1
)
<<
CV_CN_SHIFT
);
...
...
@@ -89,7 +89,7 @@ public final class CvType {
case
CV_64F:
return
8
*
channels
(
type
);
default
:
throw
new
java
.
lang
.
UnsupportedOperationException
(
throw
new
UnsupportedOperationException
(
"Unsupported CvType value: "
+
type
);
}
}
...
...
@@ -122,7 +122,7 @@ public final class CvType {
s
=
"CV_USRTYPE1"
;
break
;
default
:
throw
new
java
.
lang
.
UnsupportedOperationException
(
throw
new
UnsupportedOperationException
(
"Unsupported CvType value: "
+
type
);
}
...
...
modules/core/misc/java/src/java/core+Mat.java
View file @
96e2126a
This diff is collapsed.
Click to expand it.
modules/imgproc/misc/java/src/java/imgproc+Moments.java
View file @
96e2126a
package
org
.
opencv
.
imgproc
;
import
java.lang.Math
;
//javadoc:Moments
public
class
Moments
{
...
...
modules/java/generator/android/java/org/opencv/android/Utils.java
View file @
96e2126a
...
...
@@ -87,9 +87,9 @@ public class Utils {
*/
public
static
void
bitmapToMat
(
Bitmap
bmp
,
Mat
mat
,
boolean
unPremultiplyAlpha
)
{
if
(
bmp
==
null
)
throw
new
java
.
lang
.
IllegalArgumentException
(
"bmp == null"
);
throw
new
IllegalArgumentException
(
"bmp == null"
);
if
(
mat
==
null
)
throw
new
java
.
lang
.
IllegalArgumentException
(
"mat == null"
);
throw
new
IllegalArgumentException
(
"mat == null"
);
nBitmapToMat2
(
bmp
,
mat
.
nativeObj
,
unPremultiplyAlpha
);
}
...
...
@@ -117,9 +117,9 @@ public class Utils {
*/
public
static
void
matToBitmap
(
Mat
mat
,
Bitmap
bmp
,
boolean
premultiplyAlpha
)
{
if
(
mat
==
null
)
throw
new
java
.
lang
.
IllegalArgumentException
(
"mat == null"
);
throw
new
IllegalArgumentException
(
"mat == null"
);
if
(
bmp
==
null
)
throw
new
java
.
lang
.
IllegalArgumentException
(
"bmp == null"
);
throw
new
IllegalArgumentException
(
"bmp == null"
);
nMatToBitmap2
(
mat
.
nativeObj
,
bmp
,
premultiplyAlpha
);
}
...
...
modules/java/generator/src/java/org/opencv/utils/Converters.java
View file @
96e2126a
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