| 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
)
Public Shared Sub DetectCharucoDiamond (
image As InputArray,
markerCorners As Point2f()(),
markerIds As IEnumerable(Of Integer),
squareMarkerLengthRate As Single,
<OutAttribute> ByRef diamondCorners As Point2f()(),
<OutAttribute> ByRef diamondIds As Vec4i(),
Optional cameraMatrix As InputArray = Nothing,
Optional distCoeffs As InputArray = Nothing
)
public:
static void DetectCharucoDiamond(
InputArray^ image,
array<array<Point2f>^>^ markerCorners,
IEnumerable<int>^ markerIds,
float squareMarkerLengthRate,
[OutAttribute] array<array<Point2f>^>^% diamondCorners,
[OutAttribute] array<Vec4i>^% diamondIds,
InputArray^ cameraMatrix = nullptr,
InputArray^ distCoeffs = nullptr
)
static member DetectCharucoDiamond :
image : InputArray *
markerCorners : Point2f[][] *
markerIds : IEnumerable<int> *
squareMarkerLengthRate : float32 *
diamondCorners : Point2f[][] byref *
diamondIds : Vec4i[] byref *
?cameraMatrix : InputArray *
?distCoeffs : InputArray
(* Defaults:
let _cameraMatrix = defaultArg cameraMatrix null
let _distCoeffs = defaultArg distCoeffs null
*)
-> unit
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