Click or drag to resize

Cv2DrawMarker Method

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.

Namespace:  OpenCvSharp
Assembly:  OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax
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

img
Type: OpenCvSharpInputOutputArray
Image.
position
Type: OpenCvSharpPoint
The point where the crosshair is positioned.
color
Type: OpenCvSharpScalar
Line color.
markerType (Optional)
Type: OpenCvSharpMarkerTypes
The specific type of marker you want to use.
markerSize (Optional)
Type: SystemInt32
The length of the marker axis [default = 20 pixels]
thickness (Optional)
Type: SystemInt32
Line thickness.
lineType (Optional)
Type: OpenCvSharpLineTypes
Type of the line.
See Also