Cleanup core module API
* Drop some low level API * Remove outdated overloads * Utilize Input/OutputArray
This commit is contained in:
@@ -460,7 +460,7 @@ public class CoreTest extends OpenCVTestCase {
|
||||
Mat eigenVals = new Mat();
|
||||
Mat eigenVecs = new Mat();
|
||||
|
||||
Core.eigen(src, true, eigenVals, eigenVecs);
|
||||
Core.eigen(src, eigenVals, eigenVecs);
|
||||
|
||||
Mat expectedEigenVals = new Mat(3, 1, CvType.CV_32FC1) {
|
||||
{
|
||||
@@ -1113,18 +1113,6 @@ public class CoreTest extends OpenCVTestCase {
|
||||
assertMatEqual(gray255, dst);
|
||||
}
|
||||
|
||||
public void testLUTMatMatMatInt() {
|
||||
Mat lut = new Mat(1, 256, CvType.CV_8UC1);
|
||||
// TODO: ban this overload
|
||||
try
|
||||
{
|
||||
Core.LUT(grayRnd, lut, dst, 1);
|
||||
fail("Last parameter for LUT was not supported");
|
||||
} catch (CvException e) {
|
||||
// expected
|
||||
}
|
||||
}
|
||||
|
||||
public void testMagnitude() {
|
||||
Mat x = new Mat(1, 4, CvType.CV_32F);
|
||||
Mat y = new Mat(1, 4, CvType.CV_32F);
|
||||
|
@@ -996,6 +996,11 @@ extern "C" {
|
||||
return
|
||||
for a in fi.args:
|
||||
if a.ctype not in type_dict:
|
||||
if not a.defval and a.ctype.endswith("*"):
|
||||
a.defval = 0
|
||||
if a.defval:
|
||||
a.ctype = ''
|
||||
continue
|
||||
msg = "// Unknown type '%s' (%s), skipping the function\n\n" % (a.ctype, a.out or "I")
|
||||
self.skipped_func_list.append(c_decl + "\n" + msg)
|
||||
j_code.write( " "*4 + msg )
|
||||
|
Reference in New Issue
Block a user