Java API: class KDTree is added to ignore list, JNI funcs names for renamed classes are fixed
This commit is contained in:
@@ -1,103 +0,0 @@
|
|||||||
package org.opencv.test.core;
|
|
||||||
|
|
||||||
import org.opencv.test.OpenCVTestCase;
|
|
||||||
|
|
||||||
public class KDTreeTest extends OpenCVTestCase {
|
|
||||||
|
|
||||||
protected void setUp() throws Exception {
|
|
||||||
super.setUp();
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testBuildMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testBuildMatBoolean() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testBuildMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testBuildMatMatBoolean() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testDims() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testFindNearestMatIntIntMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testFindNearestMatIntIntMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testFindNearestMatIntIntMatMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testFindNearestMatIntIntMatMatMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testFindOrthoRangeMatMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testFindOrthoRangeMatMatMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testFindOrthoRangeMatMatMatMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testGet_maxDepth() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testGet_normType() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testGet_points() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testGetPointsMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testGetPointsMatMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testKDTree() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testKDTreeMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testKDTreeMatBoolean() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testKDTreeMatMat() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testKDTreeMatMatBoolean() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
public void testSet_normType() {
|
|
||||||
fail("Not yet implemented");
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@@ -8,7 +8,7 @@ except:
|
|||||||
|
|
||||||
class_ignore_list = (
|
class_ignore_list = (
|
||||||
#core
|
#core
|
||||||
"FileNode", "FileStorage",
|
"FileNode", "FileStorage", "KDTree",
|
||||||
#highgui
|
#highgui
|
||||||
"VideoWriter", "VideoCapture",
|
"VideoWriter", "VideoCapture",
|
||||||
#features2d
|
#features2d
|
||||||
@@ -1069,6 +1069,9 @@ extern "C" {
|
|||||||
c_prologue.append("%s %s;" % (a.ctype, a.name))
|
c_prologue.append("%s %s;" % (a.ctype, a.name))
|
||||||
|
|
||||||
rtype = type_dict[fi.ctype].get("jni_type", "jdoubleArray")
|
rtype = type_dict[fi.ctype].get("jni_type", "jdoubleArray")
|
||||||
|
clazz = self.Module
|
||||||
|
if fi.classname:
|
||||||
|
clazz = self.classes[fi.classname].jname
|
||||||
cpp_code.write ( Template( \
|
cpp_code.write ( Template( \
|
||||||
"""
|
"""
|
||||||
|
|
||||||
@@ -1099,7 +1102,7 @@ JNIEXPORT $rtype JNICALL Java_org_opencv_${module}_${clazz}_$fname
|
|||||||
""" ).substitute( \
|
""" ).substitute( \
|
||||||
rtype = rtype, \
|
rtype = rtype, \
|
||||||
module = self.module, \
|
module = self.module, \
|
||||||
clazz = fi.classname or self.Module, \
|
clazz = clazz, \
|
||||||
fname = fi.jni_name + ["",suffix][isoverload], \
|
fname = fi.jni_name + ["",suffix][isoverload], \
|
||||||
args = ", ".join(["%s %s" % (type_dict[a.ctype].get("jni_type"), a.name) for a in jni_args]), \
|
args = ", ".join(["%s %s" % (type_dict[a.ctype].get("jni_type"), a.name) for a in jni_args]), \
|
||||||
prologue = "\n ".join(c_prologue), \
|
prologue = "\n ".join(c_prologue), \
|
||||||
|
Reference in New Issue
Block a user