Skip to content

Commit 2a82fa6

Browse files
authored
Merge pull request #3988 from utibenkei:fix-java-wrapper-missing-vec4i
Enable Java wrapper generation for Vec4i
2 parents 408ee9f + 084c769 commit 2a82fa6

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"missing_consts": {
3+
"Ximgproc": {
4+
"public": [
5+
["RO_STRICT", 0],
6+
["RO_IGNORE_BORDERS", 1]
7+
]
8+
}
9+
}
10+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.opencv.test.ximgproc;
2+
3+
import org.opencv.core.Core;
4+
import org.opencv.core.CvType;
5+
import org.opencv.core.Mat;
6+
import org.opencv.core.Point;
7+
import org.opencv.test.OpenCVTestCase;
8+
import org.opencv.ximgproc.Ximgproc;
9+
10+
public class XimgprocTest extends OpenCVTestCase {
11+
12+
public void testHoughPoint2Line() {
13+
Mat src = new Mat(80, 80, CvType.CV_8UC1, new org.opencv.core.Scalar(0));
14+
Point houghPoint = new Point(40, 40);
15+
16+
int[] result = Ximgproc.HoughPoint2Line(houghPoint, src, Ximgproc.ARO_315_135, Ximgproc.HDO_DESKEW, Ximgproc.RO_IGNORE_BORDERS);
17+
18+
assertNotNull(result);
19+
assertEquals(4, result.length);
20+
}
21+
}

0 commit comments

Comments
 (0)