Table of Contents

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

img InputOutputArray

Image.

position Point

The point where the crosshair is positioned.

color Scalar

Line color.

markerType MarkerTypes

The specific type of marker you want to use.

markerSize int

The length of the marker axis [default = 20 pixels]

thickness int

Line thickness.

lineType LineTypes

Type of the line.