Table of Contents

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

image InputArray

input image

board Board

layout of markers in the board.

detectedCorners Point2f[][]

vector of already detected marker corners.

detectedIds int[]

vector of already detected marker identifiers.

rejectedCorners Point2f[][]

vector of rejected candidates during the marker detection process.

newDetectedCorners Point2f[][]

updated vector of detected marker corners, including any recovered markers.

newDetectedIds int[]

updated vector of detected marker identifiers, including any recovered markers.

newRejectedCorners Point2f[][]

updated vector of rejected candidates, with recovered markers removed.

recoveredIdxs int[]

the indexes of the recovered candidates in the original rejectedCorners array.

cameraMatrix InputArray

optional input 3x3 floating-point camera matrix

distCoeffs InputArray

optional vector of distortion coefficients