Skip to content

Commit

Permalink
Fix drawing documentation referring to C API macros
Browse files Browse the repository at this point in the history
  • Loading branch information
LeszekSwirski committed May 20, 2013
1 parent 416eaf2 commit 7542d66
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/core/doc/drawing_functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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*.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7542d66

Please sign in to comment.