ImageTColor, TDepthDraw Method (Point, TColor, Int32, LineType, Point) |
http://www.emgu.com
Draws contour outlines in the image if thickness>=0 or fills area bounded by the contours if thickness<0
Namespace:
Emgu.CV
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.1.1.3497 (4.1.1.3497)
Syntaxpublic void Draw(
Point[] contours,
TColor color,
int thickness = 1,
LineType lineType = LineType.EightConnected,
Point offset = null
)
Public Sub Draw (
contours As Point(),
color As TColor,
Optional thickness As Integer = 1,
Optional lineType As LineType = LineType.EightConnected,
Optional offset As Point = Nothing
)
public:
void Draw(
array<Point>^ contours,
TColor color,
int thickness = 1,
LineType lineType = LineType::EightConnected,
Point offset = nullptr
)
member Draw :
contours : Point[] *
color : 'TColor *
?thickness : int *
?lineType : LineType *
?offset : Point
(* Defaults:
let _thickness = defaultArg thickness 1
let _lineType = defaultArg lineType LineType.EightConnected
let _offset = defaultArg offset null
*)
-> unit
Parameters
- contours
- Type: System.DrawingPoint
The input contour stored as a point vector. - color
- Type: TColor
Color of the contours - thickness (Optional)
- Type: SystemInt32
Thickness of lines the contours are drawn with. If it is negative the contour interiors are drawn - lineType (Optional)
- Type: Emgu.CV.CvEnumLineType
Type of the contour segments - offset (Optional)
- Type: System.DrawingPoint
Shift all the point coordinates by the specified value. It is useful in case if the contours retrieved in some image ROI and then the ROI offset needs to be taken into account during the rendering.
See Also