From 7542d66dbd507695218818e793a9f9894fb72ef8 Mon Sep 17 00:00:00 2001 From: Leszek Swirski Date: Fri, 17 May 2013 16:17:36 +0100 Subject: [PATCH] Fix drawing documentation referring to C API macros --- modules/core/doc/drawing_functions.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/core/doc/drawing_functions.rst b/modules/core/doc/drawing_functions.rst index 705db4fcd..17e983b6b 100644 --- a/modules/core/doc/drawing_functions.rst +++ b/modules/core/doc/drawing_functions.rst @@ -6,7 +6,7 @@ Drawing Functions Drawing functions work with matrices/images of arbitrary depth. The boundaries of the shapes can be rendered with antialiasing (implemented only for 8-bit images for now). All the functions include the parameter ``color`` that uses an RGB value (that may be constructed -with ``CV_RGB`` or the :ocv:class:`Scalar_` constructor +with the ``Scalar`` constructor ) for color images and brightness for grayscale images. For color images, the channel ordering is normally *Blue, Green, Red*. @@ -338,16 +338,16 @@ Draws a line segment connecting two points. :param lineType: Type of the line: - * **8** (or omitted) - 8-connected line. + * **LINE_8** (or omitted) - 8-connected line. - * **4** - 4-connected line. + * **LINE_4** - 4-connected line. - * **CV_AA** - antialiased line. + * **LINE_AA** - antialiased line. :param shift: Number of fractional bits in the point coordinates. The function ``line`` draws the line segment between ``pt1`` and ``pt2`` points in the image. The line is clipped by the image boundaries. For non-antialiased lines with integer coordinates, the 8-connected or 4-connected Bresenham algorithm is used. Thick lines are drawn with rounding endings. -Antialiased lines are drawn using Gaussian filtering. To specify the line color, you may use the macro ``CV_RGB(r, g, b)`` . +Antialiased lines are drawn using Gaussian filtering. LineIterator