| MatDrawMarker 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 void DrawMarker(
Point position,
Scalar color,
MarkerTypes markerType = MarkerTypes.Cross,
int markerSize = 20,
int thickness = 1,
LineTypes lineType = LineTypes.Link8
)
Public Sub DrawMarker (
position As Point,
color As Scalar,
Optional markerType As MarkerTypes = MarkerTypes.Cross,
Optional markerSize As Integer = 20,
Optional thickness As Integer = 1,
Optional lineType As LineTypes = LineTypes.Link8
)
public:
void DrawMarker(
Point position,
Scalar color,
MarkerTypes markerType = MarkerTypes::Cross,
int markerSize = 20,
int thickness = 1,
LineTypes lineType = LineTypes::Link8
)
member DrawMarker :
position : Point *
color : Scalar *
?markerType : MarkerTypes *
?markerSize : int *
?thickness : int *
?lineType : LineTypes
(* Defaults:
let _markerType = defaultArg markerType MarkerTypes.Cross
let _markerSize = defaultArg markerSize 20
let _thickness = defaultArg thickness 1
let _lineType = defaultArg lineType LineTypes.Link8
*)
-> unit
Parameters
- 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