public static void DrawLine(IInputOutputArray image, Point start, Point end, MCvScalar color, int thickness = 1, LineType lineType = LineType.EightConnected, int shift = 0) { using (InputOutputArray array = image.GetInputOutputArray()) { cveLine(array, ref start, ref end, ref color, thickness, lineType, shift); } }
public static void DrawCircle(IInputOutputArray image, Point center, int radius, MCvScalar color, int thickness = 1, LineType lineType = LineType.EightConnected, int shift = 0) { using (InputOutputArray array = image.GetInputOutputArray()) { cveCircle(array, ref center, radius, ref color, thickness, lineType, shift); } }
public static void DrawEllipse(IInputOutputArray image, Point center, Size axes, double angle, double startAngle, double endAngle, MCvScalar color, int thickness = 1, LineType lineType = LineType.EightConnected, int shift = 0) { using (InputOutputArray array = image.GetInputOutputArray()) { cveEllipse(array, ref center, ref axes, angle, startAngle, endAngle, ref color, thickness, lineType, shift); } }
public static void DrawText(IInputOutputArray image, string text, Point position, FontFace fontFace, double fontScale, MCvScalar color, int thickness = 1, LineType lineType = LineType.EightConnected, bool bottomLeftOrigin = false) { using (CvString cvString = new CvString(text)) { using (InputOutputArray array = image.GetInputOutputArray()) { cvePutText(array, cvString, ref position, fontFace, fontScale, ref color, thickness, lineType, bottomLeftOrigin); } } }
public static void DrawContours(IInputOutputArray image, IInputArray contours, int contourIdx, MCvScalar color, int thickness = 1, LineType lineType = LineType.EightConnected, IInputArray hierarchy = null, int maxLevel = int.MaxValue, Point offset = default(Point)) { using (InputOutputArray imageArray = image.GetInputOutputArray()) { using (InputArray contoursArray = contours.GetInputArray()) { using (InputArray hierarchyArray = (hierarchy != null) ? hierarchy.GetInputArray() : EmptyArray <InputArray> .Value) { cveDrawContours(imageArray, contoursArray, contourIdx, ref color, thickness, lineType, hierarchyArray, maxLevel, ref offset); } } } }