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
7061bf00
Commit
7061bf00
authored
May 21, 2015
by
Vadim Pisarevsky
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4031 from apavlenko:revert_4014
parents
298c98ea
ab8afc3b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
core+Mat.java
modules/core/misc/java/src/java/core+Mat.java
+6
-1
gen_java.py
modules/java/generator/gen_java.py
+6
-5
No files found.
modules/core/misc/java/src/java/core+Mat.java
View file @
7061bf00
...
...
@@ -640,7 +640,6 @@ public class Mat {
{
n_release
(
nativeObj
);
n_delete
(
nativeObj
);
return
;
}
...
...
@@ -907,6 +906,12 @@ public class Mat {
return
retVal
;
}
@Override
protected
void
finalize
()
throws
Throwable
{
n_delete
(
nativeObj
);
super
.
finalize
();
}
// javadoc:Mat::toString()
@Override
public
String
toString
()
{
...
...
modules/java/generator/gen_java.py
View file @
7061bf00
...
...
@@ -14,7 +14,7 @@ class_ignore_list = (
#core
"FileNode"
,
"FileStorage"
,
"KDTree"
,
"KeyPoint"
,
"DMatch"
,
#videoio
#
"VideoWriter",
"VideoWriter"
,
)
const_ignore_list
=
(
...
...
@@ -61,9 +61,9 @@ const_ignore_list = (
"CV_CAP_PROP_POS_MSEC"
,
"CV_CAP_PROP_POS_FRAMES"
,
"CV_CAP_PROP_POS_AVI_RATIO"
,
#
"CV_CAP_PROP_FPS",
#
"CV_CAP_PROP_FOURCC",
#
"CV_CAP_PROP_FRAME_COUNT",
"CV_CAP_PROP_FPS"
,
"CV_CAP_PROP_FOURCC"
,
"CV_CAP_PROP_FRAME_COUNT"
,
"CV_CAP_PROP_FORMAT"
,
"CV_CAP_PROP_MODE"
,
"CV_CAP_PROP_BRIGHTNESS"
,
...
...
@@ -1530,7 +1530,8 @@ JNIEXPORT $rtype JNICALL Java_org_opencv_${module}_${clazz}_$fname
# finalize()
ci
.
j_code
.
write
(
"""
public void delete() {
@Override
protected void finalize() throws Throwable {
delete(nativeObj);
}
"""
)
...
...
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