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
53c15655
Commit
53c15655
authored
Mar 07, 2012
by
Andrey Pavlenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Java API: replacing some manual port with auto-generated stuff (/Map-type classes)
parent
2727a425
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
189 deletions
+3
-189
gen_java.py
modules/java/gen_java.py
+3
-189
No files found.
modules/java/gen_java.py
View file @
53c15655
...
...
@@ -484,195 +484,6 @@ JNIEXPORT jdoubleArray JNICALL Java_org_opencv_core_Core_n_1getTextSize
"waitKey"
:
{
'j_code'
:
''
,
'jn_code'
:
''
,
'cpp_code'
:
''
},
},
# Highgui
'CvANN_MLP_TrainParams'
:
{
"CvANN_MLP_TrainParams"
:
{
'j_code'
:
"""
//javadoc:CvANN_MLP_TrainParams::CvANN_MLP_TrainParams()
public CvANN_MLP_TrainParams() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvANN_1MLP_1TrainParams_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvANN_MLP_TrainParams();
}
"""
},
},
'CvBoostParams'
:
{
"CvBoostParams"
:
{
'j_code'
:
"""
//javadoc:CvBoostParams::CvBoostParams()
public CvBoostParams() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvBoostParams_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvBoostParams();
}
"""
},
},
'CvDTreeParams'
:
{
"CvDTreeParams"
:
{
'j_code'
:
"""
//javadoc:CvDTreeParams::CvDTreeParams()
public CvDTreeParams() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvDTreeParams_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvDTreeParams();
}
"""
},
},
'CvEMParams'
:
{
"CvEMParams"
:
{
'j_code'
:
"""
//javadoc:CvEMParams::CvEMParams()
public CvEMParams() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvEMParams_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvEMParams();
}
"""
},
},
'CvGBTreesParams'
:
{
"CvGBTreesParams"
:
{
'j_code'
:
"""
//javadoc:CvGBTreesParams::CvGBTreesParams()
public CvGBTreesParams() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvGBTreesParams_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvGBTreesParams();
}
"""
},
},
'CvParamGrid'
:
{
"CvParamGrid"
:
{
'j_code'
:
"""
//javadoc:CvParamGrid::CvParamGrid()
public CvParamGrid() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvParamGrid_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvParamGrid();
}
"""
},
},
'CvRTParams'
:
{
"CvRTParams"
:
{
'j_code'
:
"""
//javadoc:CvRTParams::CvRTParams()
public CvRTParams() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvRTParams_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvRTParams();
}
"""
},
},
'CvStatModel'
:
{
"CvStatModel"
:
{
'j_code'
:
"""
//javadoc:CvStatModel::CvStatModel()
public CvStatModel() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvStatModel_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvStatModel();
}
"""
},
},
'CvSVMParams'
:
{
"CvSVMParams"
:
{
'j_code'
:
"""
//javadoc:CvSVMParams::CvSVMParams()
public CvSVMParams() {
nativeObj = n_newObj();
}
"""
,
'jn_code'
:
'private static native long n_newObj();'
,
'cpp_code'
:
"""
JNIEXPORT jlong JNICALL Java_org_opencv_ml_CvSVMParams_n_1newObj
(JNIEnv* env, jclass cls)
{
return (jlong) new CvSVMParams();
}
"""
},
},
}
# { class : { func : {arg_name : ctype} } }
...
...
@@ -872,6 +683,9 @@ public class %(jc)s {
self
.
classes_simple
.
append
(
name
)
if
'/Map'
in
decl
[
2
]:
self
.
classes_map
.
append
(
name
)
#adding default c-tor
ffi
=
FuncFamilyInfo
([
'cv.'
+
name
+
'.'
+
name
,
''
,
[],
[]])
classinfo
.
methods
[
ffi
.
jname
]
=
ffi
type_dict
[
name
]
=
\
{
"j_type"
:
classinfo
.
jname
,
"jn_type"
:
"long"
,
"jn_args"
:
((
"__int64"
,
".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