Method RefineDetectedMarkers
- Namespace
- OpenCvSharp.Aruco
- Assembly
- OpenCvSharp.dll
RefineDetectedMarkers(InputArray, Board, Point2f[][], int[], Point2f[][], out Point2f[][], out int[], out Point2f[][], out int[], InputArray, InputArray)
Refine not detected markers based on the already detected and the board layout. This function tries to find markers that were not detected in the basic DetectMarkers function.
public void RefineDetectedMarkers(InputArray image, Board board, Point2f[][] detectedCorners, int[] detectedIds, Point2f[][] rejectedCorners, out Point2f[][] newDetectedCorners, out int[] newDetectedIds, out Point2f[][] newRejectedCorners, out int[] recoveredIdxs, InputArray cameraMatrix = default, InputArray distCoeffs = default)
Parameters
imageInputArrayinput image
boardBoardlayout of markers in the board.
detectedCornersPoint2f[][]vector of already detected marker corners.
detectedIdsint[]vector of already detected marker identifiers.
rejectedCornersPoint2f[][]vector of rejected candidates during the marker detection process.
newDetectedCornersPoint2f[][]updated vector of detected marker corners, including any recovered markers.
newDetectedIdsint[]updated vector of detected marker identifiers, including any recovered markers.
newRejectedCornersPoint2f[][]updated vector of rejected candidates, with recovered markers removed.
recoveredIdxsint[]the indexes of the recovered candidates in the original rejectedCorners array.
cameraMatrixInputArrayoptional input 3x3 floating-point camera matrix
distCoeffsInputArrayoptional vector of distortion coefficients