1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

calib3d: add find4QuadCornerSubpix java wrapper

Fixes: https://github.com/opencv/opencv/issues/14169
This commit is contained in:
Thang Tran
2019-04-23 16:53:17 +02:00
parent ec39f0dc9e
commit 2f7fc1a598
2 changed files with 10 additions and 1 deletions
@@ -188,6 +188,15 @@ public class Calib3dTest extends OpenCVTestCase {
assertTrue(!corners.empty());
}
public void testFind4QuadCornerSubpix() {
Size patternSize = new Size(9, 6);
MatOfPoint2f corners = new MatOfPoint2f();
Size region_size = new Size(5, 5);
Calib3d.findChessboardCorners(grayChess, patternSize, corners);
Calib3d.find4QuadCornerSubpix(grayChess, corners, region_size);
assertTrue(!corners.empty());
}
public void testFindCirclesGridMatSizeMat() {
int size = 300;
Mat img = new Mat(size, size, CvType.CV_8U);