Merge pull request #899 from LeszekSwirski:fix-drawingdoc
This commit is contained in:
commit
7a07f1a9e7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user