ImageTColor, TDepthDraw Method (IInputArrayOfArrays, Int32, TColor, Int32, LineType, IInputArray, Int32, 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(
IInputArrayOfArrays contours,
int contourIdx,
TColor color,
int thickness = 1,
LineType lineType = LineType.EightConnected,
IInputArray hierarchy = null,
int maxLevel = 2147483647,
Point offset = null
)
Public Sub Draw (
contours As IInputArrayOfArrays,
contourIdx As Integer,
color As TColor,
Optional thickness As Integer = 1,
Optional lineType As LineType = LineType.EightConnected,
Optional hierarchy As IInputArray = Nothing,
Optional maxLevel As Integer = 2147483647,
Optional offset As Point = Nothing
)
public:
void Draw(
IInputArrayOfArrays^ contours,
int contourIdx,
TColor color,
int thickness = 1,
LineType lineType = LineType::EightConnected,
IInputArray^ hierarchy = nullptr,
int maxLevel = 2147483647,
Point offset = nullptr
)
member Draw :
contours : IInputArrayOfArrays *
contourIdx : int *
color : 'TColor *
?thickness : int *
?lineType : LineType *
?hierarchy : IInputArray *
?maxLevel : int *
?offset : Point
(* Defaults:
let _thickness = defaultArg thickness 1
let _lineType = defaultArg lineType LineType.EightConnected
let _hierarchy = defaultArg hierarchy null
let _maxLevel = defaultArg maxLevel 2147483647
let _offset = defaultArg offset null
*)
-> unit
Parameters
- contours
- Type: Emgu.CVIInputArrayOfArrays
All the input contours. Each contour is stored as a point vector. - contourIdx
- Type: SystemInt32
Parameter indicating a contour to draw. If it is negative, all the contours are drawn. - 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 - hierarchy (Optional)
- Type: Emgu.CVIInputArray
Optional information about hierarchy. It is only needed if you want to draw only some of the contours - maxLevel (Optional)
- Type: SystemInt32
Maximal level for drawn contours. If 0, only contour is drawn. If 1, the contour and all contours after it on the same level are drawn. If 2, all contours after and all contours one level below the contours are drawn, etc. If the value is negative, the function does not draw the contours following after contour but draws child contours of contour up to abs(maxLevel)-1 level. - 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