Click or drag to resize

CvArucoDetectCharucoDiamond Method

Detect ChArUco Diamond markers.

Namespace:  OpenCvSharp.Aruco
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
public static void DetectCharucoDiamond(
	InputArray image,
	Point2f[][] markerCorners,
	IEnumerable<int> markerIds,
	float squareMarkerLengthRate,
	out Point2f[][] diamondCorners,
	out Vec4i[] diamondIds,
	InputArray cameraMatrix = null,
	InputArray distCoeffs = null
)

Parameters

image
Type: OpenCvSharpInputArray
input image necessary for corner subpixel.
markerCorners
Type: OpenCvSharpPoint2f
list of detected marker corners from detectMarkers function.
markerIds
Type: System.Collections.GenericIEnumerableInt32
list of marker ids in markerCorners.
squareMarkerLengthRate
Type: SystemSingle
rate between square and marker length: squareMarkerLengthRate = squareLength/markerLength. The real units are not necessary.
diamondCorners
Type: OpenCvSharpPoint2f
output list of detected diamond corners (4 corners per diamond). The order is the same than in marker corners: top left, top right, bottom right and bottom left. Similar format than the corners returned by detectMarkers (e.g std::vector<std::vector<cv::Point2f>>).
diamondIds
Type: OpenCvSharpVec4i
ids of the diamonds in diamondCorners. The id of each diamond is in fact of type Vec4i, so each diamond has 4 ids, which are the ids of the aruco markers composing the diamond.
cameraMatrix (Optional)
Type: OpenCvSharpInputArray
Optional camera calibration matrix.
distCoeffs (Optional)
Type: OpenCvSharpInputArray
Optional camera distortion coefficients.
See Also