mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 06:26:29 +08:00
calib3d: add find4QuadCornerSubpix java wrapper
Fixes: https://github.com/opencv/opencv/issues/14169
This commit is contained in:
parent
ec39f0dc9e
commit
2f7fc1a598
@ -849,7 +849,7 @@ CV_EXPORTS_W bool findChessboardCorners( InputArray image, Size patternSize, Out
|
|||||||
int flags = CALIB_CB_ADAPTIVE_THRESH + CALIB_CB_NORMALIZE_IMAGE );
|
int flags = CALIB_CB_ADAPTIVE_THRESH + CALIB_CB_NORMALIZE_IMAGE );
|
||||||
|
|
||||||
//! finds subpixel-accurate positions of the chessboard corners
|
//! finds subpixel-accurate positions of the chessboard corners
|
||||||
CV_EXPORTS bool find4QuadCornerSubpix( InputArray img, InputOutputArray corners, Size region_size );
|
CV_EXPORTS_W bool find4QuadCornerSubpix( InputArray img, InputOutputArray corners, Size region_size );
|
||||||
|
|
||||||
/** @brief Renders the detected chessboard corners.
|
/** @brief Renders the detected chessboard corners.
|
||||||
|
|
||||||
|
@ -188,6 +188,15 @@ public class Calib3dTest extends OpenCVTestCase {
|
|||||||
assertTrue(!corners.empty());
|
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() {
|
public void testFindCirclesGridMatSizeMat() {
|
||||||
int size = 300;
|
int size = 300;
|
||||||
Mat img = new Mat(size, size, CvType.CV_8U);
|
Mat img = new Mat(size, size, CvType.CV_8U);
|
||||||
|
Loading…
Reference in New Issue
Block a user