Method DrawMarker
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
DrawMarker(InputOutputArray, Point, Scalar, MarkerTypes, int, int, LineTypes)
Draws a marker on a predefined position in an image.
The function cv::drawMarker draws a marker on a given position in the image.For the moment several marker types are supported, see #MarkerTypes for more information.
public static void DrawMarker(InputOutputArray img, Point position, Scalar color, MarkerTypes markerType = MarkerTypes.Cross, int markerSize = 20, int thickness = 1, LineTypes lineType = LineTypes.Link8)
Parameters
imgInputOutputArrayImage.
positionPointThe point where the crosshair is positioned.
colorScalarLine color.
markerTypeMarkerTypesThe specific type of marker you want to use.
markerSizeintThe length of the marker axis [default = 20 pixels]
thicknessintLine thickness.
lineTypeLineTypesType of the line.