Method DrawDetectedDiamonds
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
DrawDetectedDiamonds(InputOutputArray, Point2f[][], IEnumerable<Vec4i>?)
Draw a set of detected ChArUco Diamond markers.
public static void DrawDetectedDiamonds(InputOutputArray image, Point2f[][] diamondCorners, IEnumerable<Vec4i>? diamondIds = null)
Parameters
imageInputOutputArrayinput/output image. It must have 1 or 3 channels. The number of channels is not altered.
diamondCornersPoint2f[][]positions of diamond corners in the same format returned by detectCharucoDiamond(). (e.g std::vector<std::vector<cv::Point2f>>). For N detected markers, the dimensions of this array should be Nx4. The order of the corners should be clockwise.
diamondIdsIEnumerable<Vec4i>vector of identifiers for diamonds in diamondCorners, in the same format returned by detectCharucoDiamond() (e.g. std::vector<Vec4i>). Optional, if not provided, ids are not painted.
DrawDetectedDiamonds(InputOutputArray, Point2f[][], IEnumerable<Vec4i>?, Scalar)
Draw a set of detected ChArUco Diamond markers.
public static void DrawDetectedDiamonds(InputOutputArray image, Point2f[][] diamondCorners, IEnumerable<Vec4i>? diamondIds, Scalar borderColor)
Parameters
imageInputOutputArrayinput/output image. It must have 1 or 3 channels. The number of channels is not altered.
diamondCornersPoint2f[][]positions of diamond corners in the same format returned by detectCharucoDiamond(). (e.g std::vector<std::vector<cv::Point2f>>). For N detected markers, the dimensions of this array should be Nx4. The order of the corners should be clockwise.
diamondIdsIEnumerable<Vec4i>vector of identifiers for diamonds in diamondCorners, in the same format returned by detectCharucoDiamond() (e.g. std::vector<Vec4i>). Optional, if not provided, ids are not painted.
borderColorScalarcolor of marker borders. Rest of colors (text color and first corner color) are calculated based on this one.