fixed formatting a bit

This commit is contained in:
Vadim Pisarevsky 2011-05-24 13:38:55 +00:00
parent 309bb171b2
commit 7659c77619
3 changed files with 38 additions and 86 deletions

View File

@ -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
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

View File

@ -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
\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
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`

View File

@ -380,7 +380,7 @@ See Also:
bilateralFilter bilateralFilter
------------------- -------------------
.. c:function:: void bilateralFilter( const Mat\& src, Mat\& dst, int d, double sigmaColor, double sigmaSpace, int borderType=BORDER_DEFAULT ) .. c:function:: void bilateralFilter( const Mat& src, Mat& dst, int d, double sigmaColor, double sigmaSpace, int borderType=BORDER_DEFAULT )
Applies the bilateral filter to an image. Applies the bilateral filter to an image.
@ -401,7 +401,7 @@ http://www.dai.ed.ac.uk/CVonline/LOCAL\_COPIES/MANDUCHI1/Bilateral\_Filtering.ht
blur blur
-------- --------
.. c:function:: void blur( const Mat\& src, Mat\& dst, Size ksize, Point anchor=Point(-1,-1), int borderType=BORDER_DEFAULT ) .. c:function:: void blur( const Mat& src, Mat& dst, Size ksize, Point anchor=Point(-1,-1), int borderType=BORDER_DEFAULT )
Smoothes an image using the normalized box filter. Smoothes an image using the normalized box filter.
@ -461,7 +461,7 @@ See Also:
boxFilter boxFilter
------------- -------------
.. c:function:: void boxFilter( const Mat\& src, Mat\& dst, int ddepth, Size ksize, Point anchor=Point(-1,-1), bool normalize=true, int borderType=BORDER_DEFAULT ) .. c:function:: void boxFilter( const Mat& src, Mat& dst, int ddepth, Size ksize, Point anchor=Point(-1,-1), bool normalize=true, int borderType=BORDER_DEFAULT )
Smoothes an image using the box filter. Smoothes an image using the box filter.
@ -504,7 +504,7 @@ See Also:
buildPyramid buildPyramid
---------------- ----------------
.. c:function:: void buildPyramid( const Mat\& src, vector<Mat>\& dst, int maxlevel ) .. c:function:: void buildPyramid( const Mat& src, vector<Mat>& dst, int maxlevel )
Constructs the Gaussian pyramid for an image. Constructs the Gaussian pyramid for an image.
@ -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:
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:
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:
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:
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
: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:
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
: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:
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 )
Convolves an image with the kernel. Convolves an image with the kernel.
@ -895,7 +895,7 @@ See Also:
GaussianBlur GaussianBlur
---------------- ----------------
.. c:function:: void GaussianBlur( const Mat\& src, Mat\& dst, Size ksize, double sigmaX, double sigmaY=0, int borderType=BORDER_DEFAULT ) .. c:function:: void GaussianBlur( const Mat& src, Mat& dst, Size ksize, double sigmaX, double sigmaY=0, int borderType=BORDER_DEFAULT )
Smoothes an image using a Gaussian filter. Smoothes an image using a Gaussian filter.
@ -922,7 +922,7 @@ See Also:
getDerivKernels getDerivKernels
------------------- -------------------
.. c:function:: void getDerivKernels( Mat\& kx, Mat\& ky, int dx, int dy, int ksize, bool normalize=false, int ktype=CV_32F ) .. c:function:: void getDerivKernels( Mat& kx, Mat& ky, int dx, int dy, int ksize, bool normalize=false, int ktype=CV_32F )
Returns filter coefficients for computing spatial image derivatives. Returns filter coefficients for computing spatial image derivatives.
@ -988,7 +988,7 @@ See Also:
getKernelType getKernelType
----------------- -----------------
.. c:function:: int getKernelType(const Mat\& kernel, Point anchor) .. c:function:: int getKernelType(const Mat& kernel, Point anchor)
Returns the kernel type. Returns the kernel type.
@ -1045,7 +1045,7 @@ The function constructs and returns the structuring element that can be then pas
medianBlur medianBlur
-------------- --------------
.. c:function:: void medianBlur( const Mat\& src, Mat\& dst, int ksize ) .. c:function:: void medianBlur( const Mat& src, Mat& dst, int ksize )
Smoothes an image using the median filter. Smoothes an image using the median filter.
@ -1068,7 +1068,7 @@ See Also:
morphologyEx morphologyEx
---------------- ----------------
.. c:function:: void morphologyEx( const Mat\& src, Mat\& dst, int op, const Mat\& element, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar\& borderValue=morphologyDefaultBorderValue() ) .. c:function:: void morphologyEx( const Mat& src, Mat& dst, int op, const Mat& element, Point anchor=Point(-1,-1), int iterations=1, int borderType=BORDER_CONSTANT, const Scalar& borderValue=morphologyDefaultBorderValue() )
Performs advanced morphological transformations. Performs advanced morphological transformations.
@ -1139,7 +1139,7 @@ See Also:
Laplacian Laplacian
------------- -------------
.. c:function:: void Laplacian( const Mat\& src, Mat\& dst, int ddepth, int ksize=1, double scale=1, double delta=0, int borderType=BORDER_DEFAULT ) .. c:function:: void Laplacian( const Mat& src, Mat& dst, int ddepth, int ksize=1, double scale=1, double delta=0, int borderType=BORDER_DEFAULT )
Calculates the Laplacian of an image. Calculates the Laplacian of an image.
@ -1178,7 +1178,7 @@ See Also:
pyrDown pyrDown
----------- -----------
.. c:function:: void pyrDown( const Mat\& src, Mat\& dst, const Size\& dstsize=Size()) .. c:function:: void pyrDown( const Mat& src, Mat& dst, const Size& dstsize=Size())
Smoothes an image and downsamples it. Smoothes an image and downsamples it.
@ -1205,7 +1205,7 @@ Then, it downsamples the image by rejecting even rows and columns.
pyrUp pyrUp
--------- ---------
.. c:function:: void pyrUp( const Mat\& src, Mat\& dst, const Size\& dstsize=Size()) .. c:function:: void pyrUp( const Mat& src, Mat& dst, const Size& dstsize=Size())
Upsamples an image and then smoothes it. Upsamples an image and then smoothes it.
@ -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:
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:
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.