Commit 7659c776 authored by Vadim Pisarevsky's avatar Vadim Pisarevsky

fixed formatting a bit

parent 309bb171
...@@ -148,45 +148,28 @@ Dilate ...@@ -148,45 +148,28 @@ Dilate
------ ------
.. cfunction:: void cvDilate( const CvArr* src, CvArr* dst, IplConvKernel* element=NULL, int iterations=1 ) .. cfunction:: void cvDilate( const CvArr* src, CvArr* dst, IplConvKernel* element=NULL, int iterations=1 )
Dilates an image by using a specific structuring element. Dilates an image by using a specific structuring element.
:param src: Source image :param src: Source image
:param dst: Destination image :param dst: Destination image
:param element: Structuring element used for dilation. If it is ``NULL``, a ``3 x 3`` rectangular structuring element is used
:param element: Structuring element used for dilation. If it is ``NULL`` ,
a :math:`3\times 3` rectangular structuring element is used
:param iterations: Number of times dilation is applied :param iterations: Number of times dilation is applied
The function dilates the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the maximum is taken: The function dilates the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the maximum is taken:
.. math:: .. math::
\max _{(x',y') \, in \, \texttt{element} }src(x+x',y+y') \max _{(x',y') \, in \, \texttt{element} }src(x+x',y+y')
The function supports the in-place mode. Dilation can be applied several ( The function supports the in-place mode. Dilation can be applied several (``iterations``) times. For color images, each channel is processed independently.
``iterations``
) times. For color images, each channel is processed independently.
.. index:: Erode .. index:: Erode
...@@ -205,37 +188,24 @@ Erode ...@@ -205,37 +188,24 @@ Erode
Erodes an image by using a specific structuring element. Erodes an image by using a specific structuring element.
:param src: Source image :param src: Source image
:param dst: Destination image :param dst: Destination image
:param element: Structuring element used for erosion. If it is ``NULL`` , a ``3 x 3`` rectangular structuring element is used
:param element: Structuring element used for erosion. If it is ``NULL`` , :param iterations: Number of times erosion is applied
a :math:`3\times 3` rectangular structuring element is used
:param iterations: Number of times erosion is applied
The function erodes the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the minimum is taken: The function erodes the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the minimum is taken:
.. math:: .. math::
\min _{(x',y') \, in \, \texttt{element} }src(x+x',y+y') \min _{(x',y') \, in \, \texttt{element} }src(x+x',y+y')
The function supports the in-place mode. Erosion can be applied several ( The function supports the in-place mode. Erosion can be applied several (``iterations``) times. For color images, each channel is processed independently.
``iterations``
) times. For color images, each channel is processed independently.
.. index:: Filter2D .. index:: Filter2D
......
...@@ -173,32 +173,23 @@ Dilate ...@@ -173,32 +173,23 @@ Dilate
Dilates an image by using a specific structuring element. Dilates an image by using a specific structuring element.
:param src: Source image :param src: Source image
:type src: :class:`CvArr` :type src: :class:`CvArr`
:param dst: Destination image :param dst: Destination image
:type dst: :class:`CvArr` :type dst: :class:`CvArr`
:param element: Structuring element used for dilation. If it is ``None`` , a ``3 x 3`` rectangular structuring element is used
:param element: Structuring element used for dilation. If it is ``None`` ,
a :math:`3\times 3` rectangular structuring element is used
:type element: :class:`IplConvKernel` :type element: :class:`IplConvKernel`
:param iterations: Number of times dilation is applied :param iterations: Number of times dilation is applied
:type iterations: int :type iterations: int
The function dilates the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the maximum is taken: The function dilates the source image using the specified structuring element that determines the shape of a pixel neighborhood over which the maximum is taken:
...@@ -208,9 +199,7 @@ The function dilates the source image using the specified structuring element th ...@@ -208,9 +199,7 @@ The function dilates the source image using the specified structuring element th
\max _{(x',y') \, in \, \texttt{element} }src(x+x',y+y') \max _{(x',y') \, in \, \texttt{element} }src(x+x',y+y')
The function supports the in-place mode. Dilation can be applied several ( The function supports the in-place mode. Dilation can be applied several (``iterations``) times. For color images, each channel is processed independently.
``iterations``
) times. For color images, each channel is processed independently.
.. index:: Erode .. index:: Erode
...@@ -227,23 +216,16 @@ Erode ...@@ -227,23 +216,16 @@ Erode
Erodes an image by using a specific structuring element. Erodes an image by using a specific structuring element.
:param src: Source image :param src: Source image
:type src: :class:`CvArr` :type src: :class:`CvArr`
:param dst: Destination image :param dst: Destination image
:type dst: :class:`CvArr` :type dst: :class:`CvArr`
:param element: Structuring element used for erosion. If it is ``None`` , a ``3 x 3`` rectangular structuring element is used
:param element: Structuring element used for erosion. If it is ``None`` ,
a :math:`3\times 3` rectangular structuring element is used
:type element: :class:`IplConvKernel` :type element: :class:`IplConvKernel`
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment