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.
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
@@ -522,7 +522,7 @@ The function constructs a vector of images and builds the Gaussian pyramid by re
...
@@ -522,7 +522,7 @@ The function constructs a vector of images and builds the Gaussian pyramid by re
copyMakeBorder
copyMakeBorder
------------------
------------------
.. c:function:: void copyMakeBorder( const Mat\& src, Mat\& dst, int top, int bottom, int left, int right, int borderType, const Scalar\& value=Scalar() )
.. c:function:: void copyMakeBorder( const Mat& src, Mat& dst, int top, int bottom, int left, int right, int borderType, const Scalar& value=Scalar() )
Forms a border around an image.
Forms a border around an image.
...
@@ -664,9 +664,9 @@ See Also:
...
@@ -664,9 +664,9 @@ See Also:
createLinearFilter
createLinearFilter
----------------------
----------------------
.. c:function:: Ptr<FilterEngine> createLinearFilter(int srcType, int dstType, const Mat\& kernel, Point _anchor=Point(-1,-1), double delta=0, int rowBorderType=BORDER_DEFAULT, int columnBorderType=-1, const Scalar\& borderValue=Scalar())
.. c:function:: Ptr<FilterEngine> createLinearFilter(int srcType, int dstType, const Mat& kernel, Point _anchor=Point(-1,-1), double delta=0, int rowBorderType=BORDER_DEFAULT, int columnBorderType=-1, const Scalar& borderValue=Scalar())
.. c:function:: Ptr<BaseFilter> getLinearFilter(int srcType, int dstType, const Mat\& kernel, Point anchor=Point(-1,-1), double delta=0, int bits=0)
.. c:function:: Ptr<BaseFilter> getLinearFilter(int srcType, int dstType, const Mat& kernel, Point anchor=Point(-1,-1), double delta=0, int bits=0)
Creates a non-separable linear filter engine.
Creates a non-separable linear filter engine.
...
@@ -697,9 +697,9 @@ See Also:
...
@@ -697,9 +697,9 @@ See Also:
createMorphologyFilter
createMorphologyFilter
--------------------------
--------------------------
.. c:function:: Ptr<FilterEngine> createMorphologyFilter(int op, int type, const Mat\& element, Point anchor=Point(-1,-1), int rowBorderType=BORDER_CONSTANT, int columnBorderType=-1, const Scalar\& borderValue=morphologyDefaultBorderValue())
.. c:function:: Ptr<FilterEngine> createMorphologyFilter(int op, int type, const Mat& element, Point anchor=Point(-1,-1), int rowBorderType=BORDER_CONSTANT, int columnBorderType=-1, const Scalar& borderValue=morphologyDefaultBorderValue())
.. c:function:: Ptr<BaseFilter> getMorphologyFilter(int op, int type, const Mat\& element, Point anchor=Point(-1,-1))
.. c:function:: Ptr<BaseFilter> getMorphologyFilter(int op, int type, const Mat& element, Point anchor=Point(-1,-1))
.. c:function:: Ptr<BaseRowFilter> getMorphologyRowFilter(int op, int type, int esize, int anchor=-1)
.. c:function:: Ptr<BaseRowFilter> getMorphologyRowFilter(int op, int type, int esize, int anchor=-1)
...
@@ -740,11 +740,11 @@ See Also:
...
@@ -740,11 +740,11 @@ See Also:
createSeparableLinearFilter
createSeparableLinearFilter
-------------------------------
-------------------------------
.. c:function:: Ptr<FilterEngine> createSeparableLinearFilter(int srcType, int dstType, const Mat\& rowKernel, const Mat\& columnKernel, Point anchor=Point(-1,-1), double delta=0, int rowBorderType=BORDER_DEFAULT, int columnBorderType=-1, const Scalar\& borderValue=Scalar())
.. c:function:: Ptr<FilterEngine> createSeparableLinearFilter(int srcType, int dstType, const Mat& rowKernel, const Mat& columnKernel, Point anchor=Point(-1,-1), double delta=0, int rowBorderType=BORDER_DEFAULT, int columnBorderType=-1, const Scalar& borderValue=Scalar())
.. c:function:: Ptr<BaseColumnFilter> getLinearColumnFilter(int bufType, int dstType, const Mat\& columnKernel, int anchor, int symmetryType, double delta=0, int bits=0)
.. c:function:: Ptr<BaseColumnFilter> getLinearColumnFilter(int bufType, int dstType, const Mat& columnKernel, int anchor, int symmetryType, double delta=0, int bits=0)
.. c:function:: Ptr<BaseRowFilter> getLinearRowFilter(int srcType, int bufType, const Mat\& rowKernel, int anchor, int symmetryType)
.. c:function:: Ptr<BaseRowFilter> getLinearRowFilter(int srcType, int bufType, const Mat& rowKernel, int anchor, int symmetryType)
Creates an engine for a separable linear filter.
Creates an engine for a separable linear filter.
...
@@ -785,7 +785,7 @@ See Also:
...
@@ -785,7 +785,7 @@ See Also:
dilate
dilate
----------
----------
.. c:function:: void dilate( const Mat\& src, Mat\& dst, const Mat\& element, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar\& borderValue=morphologyDefaultBorderValue() )
.. c:function:: void dilate( const Mat& src, Mat& dst, const Mat& element, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar& borderValue=morphologyDefaultBorderValue() )
Dilates an image by using a specific structuring element.
Dilates an image by using a specific structuring element.
...
@@ -793,9 +793,9 @@ dilate
...
@@ -793,9 +793,9 @@ dilate
:param dst: Destination image of the same size and type as ``src`` .
:param dst: Destination image of the same size and type as ``src`` .
:param element: Structuring element used for dilation. If ``element=Mat()`` , a :math:`3\times 3` rectangular structuring element is used.
:param element: Structuring element used for dilation. If ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used.
:param anchor: Position of the anchor within the element. The default value :math:`(-1, -1)` means that the anchor is at the element center.
:param anchor: Position of the anchor within the element. The default value ``(-1, -1)`` means that the anchor is at the element center.
:param iterations: Number of times dilation is applied.
:param iterations: Number of times dilation is applied.
...
@@ -819,7 +819,7 @@ See Also:
...
@@ -819,7 +819,7 @@ See Also:
erode
erode
---------
---------
.. c:function:: void erode( const Mat\& src, Mat\& dst, const Mat\& element, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar\& borderValue=morphologyDefaultBorderValue() )
.. c:function:: void erode( const Mat& src, Mat& dst, const Mat& element, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar& borderValue=morphologyDefaultBorderValue() )
Erodes an image by using a specific structuring element.
Erodes an image by using a specific structuring element.
...
@@ -827,9 +827,9 @@ erode
...
@@ -827,9 +827,9 @@ erode
:param dst: Destination image of the same size and type as ``src`` .
:param dst: Destination image of the same size and type as ``src`` .
:param element: Structuring element used for erosion. If ``element=Mat()`` , a :math:`3\times 3` rectangular structuring element is used.
:param element: Structuring element used for erosion. If ``element=Mat()`` , a ``3 x 3`` rectangular structuring element is used.
:param anchor: Position of the anchor within the element. The default value :math:`(-1, -1)` means that the anchor is at the element center.
:param anchor: Position of the anchor within the element. The default value ``(-1, -1)`` means that the anchor is at the element center.
:param iterations: Number of times erosion is applied.
:param iterations: Number of times erosion is applied.
...
@@ -854,7 +854,7 @@ See Also:
...
@@ -854,7 +854,7 @@ See Also:
filter2D
filter2D
------------
------------
.. c:function:: void filter2D( const Mat\& src, Mat\& dst, int ddepth, const Mat\& kernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT )
.. c:function:: void filter2D( const Mat& src, Mat& dst, int ddepth, const Mat& kernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT )
@@ -1227,7 +1227,7 @@ The function performs the upsampling step of the Gaussian pyramid construction
...
@@ -1227,7 +1227,7 @@ The function performs the upsampling step of the Gaussian pyramid construction
sepFilter2D
sepFilter2D
---------------
---------------
.. c:function:: void sepFilter2D( const Mat\& src, Mat\& dst, int ddepth, const Mat\& rowKernel, const Mat\& columnKernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT )
.. c:function:: void sepFilter2D( const Mat& src, Mat& dst, int ddepth, const Mat& rowKernel, const Mat& columnKernel, Point anchor=Point(-1,-1), double delta=0, int borderType=BORDER_DEFAULT )
Applies a separable linear filter to an image.
Applies a separable linear filter to an image.
...
@@ -1261,7 +1261,7 @@ See Also:
...
@@ -1261,7 +1261,7 @@ See Also:
Sobel
Sobel
---------
---------
.. c:function:: void Sobel( const Mat\& src, Mat\& dst, int ddepth, int xorder, int yorder, int ksize=3, double scale=1, double delta=0, int borderType=BORDER_DEFAULT )
.. c:function:: void Sobel( const Mat& src, Mat& dst, int ddepth, int xorder, int yorder, int ksize=3, double scale=1, double delta=0, int borderType=BORDER_DEFAULT )
Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
Calculates the first, second, third, or mixed image derivatives using an extended Sobel operator.
...
@@ -1334,7 +1334,7 @@ See Also:
...
@@ -1334,7 +1334,7 @@ See Also:
Scharr
Scharr
----------
----------
.. c:function:: void Scharr( const Mat\& src, Mat\& dst, int ddepth, int xorder, int yorder, double scale=1, double delta=0, int borderType=BORDER_DEFAULT )
.. c:function:: void Scharr( const Mat& src, Mat& dst, int ddepth, int xorder, int yorder, double scale=1, double delta=0, int borderType=BORDER_DEFAULT )
Calculates the first x- or y- image derivative using Scharr operator.
Calculates the first x- or y- image derivative using Scharr operator.