:param image: Grid view of source circles. It must be an 8-bit grayscale or color image.
:param image: grid view of input circles; it must be an 8-bit grayscale or color image.
:param patternSize: Number of circles per a grid row and column ``( patternSize = Size(points_per_row, points_per_colum) )`` .
:param patternSize: number of circles per row and column ``( patternSize = Size(points_per_row, points_per_colum) )``.
:param centers: Output array of detected centers.
:param centers: output array of detected centers.
:param flags: Various operation flags that can be one of the following values:
:param flags: various operation flags that can be one of the following values:
* **CALIB_CB_SYMMETRIC_GRID** Use symmetric pattern of circles.
* **CALIB_CB_SYMMETRIC_GRID** uses symmetric pattern of circles.
* **CALIB_CB_ASYMMETRIC_GRID** Use asymmetric pattern of circles.
* **CALIB_CB_ASYMMETRIC_GRID** uses asymmetric pattern of circles.
* **CALIB_CB_CLUSTERING** Use a special algorithm for grid detection. It is more robust to perspective distortions but much more sensitive to background clutter.
* **CALIB_CB_CLUSTERING** uses a special algorithm for grid detection. It is more robust to perspective distortions but much more sensitive to background clutter.
:param blobDetector: FeatureDetector that finds blobs like dark circles on light background
:param blobDetector: feature detector that finds blobs like dark circles on light background.
These are available assignment operators. Since they all are very different, make sure to read the operator parameters description.
These are available assignment operators. Since they all are very different, make sure to read the operator parameters description.
Mat::row
Mat::row
------------
--------
Creates a matrix header for the specified matrix row.
Creates a matrix header for the specified matrix row.
.. ocv:function:: Mat Mat::row(int y) const
.. ocv:function:: Mat Mat::row(int y) const
...
@@ -923,7 +923,7 @@ The method makes a new header for the specified matrix row and returns it. This
...
@@ -923,7 +923,7 @@ The method makes a new header for the specified matrix row and returns it. This
A.row(j).copyTo(A.row(i));
A.row(j).copyTo(A.row(i));
Mat::col
Mat::col
------------
--------
Creates a matrix header for the specified matrix column.
Creates a matrix header for the specified matrix column.
.. ocv:function:: Mat Mat::col(int x) const
.. ocv:function:: Mat Mat::col(int x) const
...
@@ -935,7 +935,7 @@ The method makes a new header for the specified matrix column and returns it. Th
...
@@ -935,7 +935,7 @@ The method makes a new header for the specified matrix column and returns it. Th
Mat::rowRange
Mat::rowRange
-----------------
-------------
Creates a matrix header for the specified row span.
Creates a matrix header for the specified row span.
.. ocv:function:: Mat Mat::rowRange(int startrow, int endrow) const
.. ocv:function:: Mat Mat::rowRange(int startrow, int endrow) const
...
@@ -953,7 +953,7 @@ The method makes a new header for the specified row span of the matrix. Similarl
...
@@ -953,7 +953,7 @@ The method makes a new header for the specified row span of the matrix. Similarl
:ocv:func:`Mat::col` , this is an O(1) operation.
:ocv:func:`Mat::col` , this is an O(1) operation.
Mat::colRange
Mat::colRange
-----------------
-------------
Creates a matrix header for the specified row span.
Creates a matrix header for the specified row span.
.. ocv:function:: Mat Mat::colRange(int startcol, int endcol) const
.. ocv:function:: Mat Mat::colRange(int startcol, int endcol) const
...
@@ -971,7 +971,7 @@ The method makes a new header for the specified column span of the matrix. Simil
...
@@ -971,7 +971,7 @@ The method makes a new header for the specified column span of the matrix. Simil
:ocv:func:`Mat::col` , this is an O(1) operation.
:ocv:func:`Mat::col` , this is an O(1) operation.
Mat::diag
Mat::diag
-------------
---------
Extracts a diagonal from a matrix, or creates a diagonal matrix.
Extracts a diagonal from a matrix, or creates a diagonal matrix.
.. ocv:function:: Mat Mat::diag( int d=0 ) const
.. ocv:function:: Mat Mat::diag( int d=0 ) const
...
@@ -991,7 +991,7 @@ The method makes a new header for the specified matrix diagonal. The new matrix
...
@@ -991,7 +991,7 @@ The method makes a new header for the specified matrix diagonal. The new matrix
:ocv:func:`Mat::col` , this is an O(1) operation.
:ocv:func:`Mat::col` , this is an O(1) operation.
Mat::clone
Mat::clone
--------------
----------
Creates a full copy of the array and the underlying data.
Creates a full copy of the array and the underlying data.
.. ocv:function:: Mat Mat::clone() const
.. ocv:function:: Mat Mat::clone() const
...
@@ -1000,7 +1000,7 @@ The method creates a full copy of the array. The original ``step[]`` is not take
...
@@ -1000,7 +1000,7 @@ The method creates a full copy of the array. The original ``step[]`` is not take
Mat::copyTo
Mat::copyTo
---------------
-----------
Copies the matrix to another one.
Copies the matrix to another one.
.. ocv:function:: void Mat::copyTo( OutputArray m ) const
.. ocv:function:: void Mat::copyTo( OutputArray m ) const
...
@@ -1022,18 +1022,18 @@ When the operation mask is specified, and the ``Mat::create`` call shown above r
...
@@ -1022,18 +1022,18 @@ When the operation mask is specified, and the ``Mat::create`` call shown above r
.. _Mat::convertTo:
.. _Mat::convertTo:
Mat::convertTo
Mat::convertTo
------------------
--------------
Converts an array to another data type with optional scaling.
Converts an array to another data type with optional scaling.
.. ocv:function:: void Mat::convertTo( OutputArray m, int rtype, double alpha=1, double beta=0 ) const
.. ocv:function:: void Mat::convertTo( OutputArray m, int rtype, double alpha=1, double beta=0 ) const
:param m: Destination matrix. If it does not have a proper size or type before the operation, it is reallocated.
:param m: output matrix; if it does not have a proper size or type before the operation, it is reallocated.
:param rtype: Desired destination matrix type or, rather, the depth since the number of channels are the same as the source has. If ``rtype`` is negative, the destination matrix will have the same type as the source.
:param rtype: desired output matrix type or, rather, the depth since the number of channels are the same as the input has; if ``rtype`` is negative, the output matrix will have the same type as the input.
:param alpha: Optional scale factor.
:param alpha: optional scale factor.
:param beta: Optional delta added to the scaled values.
:param beta: optional delta added to the scaled values.
The method converts source pixel values to the target data type. ``saturate_cast<>`` is applied at the end to avoid possible overflows:
The method converts source pixel values to the target data type. ``saturate_cast<>`` is applied at the end to avoid possible overflows:
...
@@ -1043,7 +1043,7 @@ The method converts source pixel values to the target data type. ``saturate_cast
...
@@ -1043,7 +1043,7 @@ The method converts source pixel values to the target data type. ``saturate_cast
Mat::assignTo
Mat::assignTo
-----------------
-------------
Provides a functional form of ``convertTo``.
Provides a functional form of ``convertTo``.
.. ocv:function:: void Mat::assignTo( Mat& m, int type=-1 ) const
.. ocv:function:: void Mat::assignTo( Mat& m, int type=-1 ) const
...
@@ -1056,7 +1056,7 @@ This is an internally used method called by the
...
@@ -1056,7 +1056,7 @@ This is an internally used method called by the
:ref:`MatrixExpressions` engine.
:ref:`MatrixExpressions` engine.
Mat::setTo
Mat::setTo
--------------
----------
Sets all or some of the array elements to the specified value.
Sets all or some of the array elements to the specified value.
@@ -1129,7 +1129,7 @@ The method performs a matrix inversion by means of matrix expressions. This mean
...
@@ -1129,7 +1129,7 @@ The method performs a matrix inversion by means of matrix expressions. This mean
Mat::mul
Mat::mul
------------
--------
Performs an element-wise multiplication or division of the two matrices.
Performs an element-wise multiplication or division of the two matrices.
.. ocv:function:: MatExpr Mat::mul(InputArray m, double scale=1) const
.. ocv:function:: MatExpr Mat::mul(InputArray m, double scale=1) const
...
@@ -1146,7 +1146,7 @@ Example: ::
...
@@ -1146,7 +1146,7 @@ Example: ::
Mat::cross
Mat::cross
--------------
----------
Computes a cross-product of two 3-element vectors.
Computes a cross-product of two 3-element vectors.
.. ocv:function:: Mat Mat::cross(InputArray m) const
.. ocv:function:: Mat Mat::cross(InputArray m) const
...
@@ -1157,18 +1157,18 @@ The method computes a cross-product of two 3-element vectors. The vectors must b
...
@@ -1157,18 +1157,18 @@ The method computes a cross-product of two 3-element vectors. The vectors must b
Mat::dot
Mat::dot
------------
--------
Computes a dot-product of two vectors.
Computes a dot-product of two vectors.
.. ocv:function:: double Mat::dot(InputArray m) const
.. ocv:function:: double Mat::dot(InputArray m) const
:param m: Another dot-product operand.
:param m: another dot-product operand.
The method computes a dot-product of two matrices. If the matrices are not single-column or single-row vectors, the top-to-bottom left-to-right scan ordering is used to treat them as 1D vectors. The vectors must have the same size and type. If the matrices have more than one channel, the dot products from all the channels are summed together.
The method computes a dot-product of two matrices. If the matrices are not single-column or single-row vectors, the top-to-bottom left-to-right scan ordering is used to treat them as 1D vectors. The vectors must have the same size and type. If the matrices have more than one channel, the dot products from all the channels are summed together.
Mat::zeros
Mat::zeros
--------------
----------
Returns a zero array of the specified size and type.
Returns a zero array of the specified size and type.
.. ocv:function:: static MatExpr Mat::zeros(int rows, int cols, int type)
.. ocv:function:: static MatExpr Mat::zeros(int rows, int cols, int type)
...
@@ -1443,7 +1443,7 @@ The operators make a new header for the specified sub-array of ``*this`` . They
...
@@ -1443,7 +1443,7 @@ The operators make a new header for the specified sub-array of ``*this`` . They
Mat::operator CvMat
Mat::operator CvMat
-----------------------
-------------------
Creates the ``CvMat`` header for the matrix.
Creates the ``CvMat`` header for the matrix.
.. ocv:function:: Mat::operator CvMat() const
.. ocv:function:: Mat::operator CvMat() const
...
@@ -1462,7 +1462,7 @@ where ``mycvOldFunc`` is a function written to work with OpenCV 1.x data structu
...
@@ -1462,7 +1462,7 @@ where ``mycvOldFunc`` is a function written to work with OpenCV 1.x data structu
Mat::operator IplImage
Mat::operator IplImage
--------------------------
----------------------
Creates the ``IplImage`` header for the matrix.
Creates the ``IplImage`` header for the matrix.
.. ocv:function:: Mat::operator IplImage() const
.. ocv:function:: Mat::operator IplImage() const
...
@@ -1470,7 +1470,7 @@ Creates the ``IplImage`` header for the matrix.
...
@@ -1470,7 +1470,7 @@ Creates the ``IplImage`` header for the matrix.
The operator creates the ``IplImage`` header for the matrix without copying the underlying data. You should make sure than the original matrix is not deallocated while the ``IplImage`` header is used. Similarly to ``Mat::operator CvMat`` , the operator is useful for intermixing the new and the old OpenCV API's.
The operator creates the ``IplImage`` header for the matrix without copying the underlying data. You should make sure than the original matrix is not deallocated while the ``IplImage`` header is used. Similarly to ``Mat::operator CvMat`` , the operator is useful for intermixing the new and the old OpenCV API's.
Mat::total
Mat::total
--------------
----------
Returns the total number of array elements.
Returns the total number of array elements.
.. ocv:function:: size_t Mat::total() const
.. ocv:function:: size_t Mat::total() const
...
@@ -1478,7 +1478,7 @@ Returns the total number of array elements.
...
@@ -1478,7 +1478,7 @@ Returns the total number of array elements.
The method returns the number of array elements (a number of pixels if the array represents an image).
The method returns the number of array elements (a number of pixels if the array represents an image).
Mat::isContinuous
Mat::isContinuous
---------------------
-----------------
Reports whether the matrix is continuous or not.
Reports whether the matrix is continuous or not.
.. ocv:function:: bool Mat::isContinuous() const
.. ocv:function:: bool Mat::isContinuous() const
...
@@ -1576,7 +1576,7 @@ The method returns a matrix element type. This is an identifier compatible with
...
@@ -1576,7 +1576,7 @@ The method returns a matrix element type. This is an identifier compatible with
Mat::depth
Mat::depth
--------------
----------
Returns the depth of a matrix element.
Returns the depth of a matrix element.
.. ocv:function:: int Mat::depth() const
.. ocv:function:: int Mat::depth() const
...
@@ -1599,7 +1599,7 @@ The method returns the identifier of the matrix element depth (the type of each
...
@@ -1599,7 +1599,7 @@ The method returns the identifier of the matrix element depth (the type of each
Mat::channels
Mat::channels
-----------------
-------------
Returns the number of matrix channels.
Returns the number of matrix channels.
.. ocv:function:: int Mat::channels() const
.. ocv:function:: int Mat::channels() const
...
@@ -1608,7 +1608,7 @@ The method returns the number of matrix channels.
...
@@ -1608,7 +1608,7 @@ The method returns the number of matrix channels.
Mat::step1
Mat::step1
--------------
----------
Returns a normalized step.
Returns a normalized step.
.. ocv:function:: size_t Mat::step1( int i=0 ) const
.. ocv:function:: size_t Mat::step1( int i=0 ) const
...
@@ -1618,7 +1618,7 @@ The method returns a matrix step divided by
...
@@ -1618,7 +1618,7 @@ The method returns a matrix step divided by
Mat::size
Mat::size
-------------
---------
Returns a matrix size.
Returns a matrix size.
.. ocv:function:: Size Mat::size() const
.. ocv:function:: Size Mat::size() const
...
@@ -1627,7 +1627,7 @@ The method returns a matrix size: ``Size(cols, rows)`` . When the matrix is more
...
@@ -1627,7 +1627,7 @@ The method returns a matrix size: ``Size(cols, rows)`` . When the matrix is more
Mat::empty
Mat::empty
--------------
----------
Returns ``true`` if the array has no elements.
Returns ``true`` if the array has no elements.
.. ocv:function:: bool Mat::empty() const
.. ocv:function:: bool Mat::empty() const
...
@@ -1636,7 +1636,7 @@ The method returns ``true`` if ``Mat::total()`` is 0 or if ``Mat::data`` is NULL
...
@@ -1636,7 +1636,7 @@ The method returns ``true`` if ``Mat::total()`` is 0 or if ``Mat::data`` is NULL
Mat::ptr
Mat::ptr
------------
--------
Returns a pointer to the specified matrix row.
Returns a pointer to the specified matrix row.
.. ocv:function:: uchar* Mat::ptr(int i0=0)
.. ocv:function:: uchar* Mat::ptr(int i0=0)
...
@@ -1654,7 +1654,7 @@ The methods return ``uchar*`` or typed pointer to the specified matrix row. See
...
@@ -1654,7 +1654,7 @@ The methods return ``uchar*`` or typed pointer to the specified matrix row. See
Mat::at
Mat::at
-----------
-------
Returns a reference to the specified array element.
Returns a reference to the specified array element.
:param image: Image where keypoints (corners) are detected.
:param image: grayscale image where keypoints (corners) are detected.
:param keypoints: Keypoints detected on the image.
:param keypoints: keypoints detected on the image.
:param threshold: Threshold on difference between intensity of the central pixel and pixels on a circle around this pixel. See the algorithm description below.
:param threshold: threshold on difference between intensity of the central pixel and pixels of a circle around this pixel.
:param nonmaxSupression: If it is true, non-maximum suppression is applied to detected corners (keypoints).
:param nonmaxSupression: if true, non-maximum suppression is applied to detected corners (keypoints).
:param type: one of the three neighborhoods as defined in the paper: ``FastFeatureDetector::TYPE_9_16``, ``FastFeatureDetector::TYPE_7_12``, ``FastFeatureDetector::TYPE_5_8``
:param type: one of the three neighborhoods as defined in the paper: ``FastFeatureDetector::TYPE_9_16``, ``FastFeatureDetector::TYPE_7_12``, ``FastFeatureDetector::TYPE_5_8``
:param edges: Output edge map. It has the same size and type as ``image`` .
:param edges: output edge map; it has the same size and type as ``image`` .
:param threshold1: First threshold for the hysteresis procedure.
:param threshold1: first threshold for the hysteresis procedure.
:param threshold2: Second threshold for the hysteresis procedure.
:param threshold2: second threshold for the hysteresis procedure.
:param apertureSize: Aperture size for the :ocv:func:`Sobel` operator.
:param apertureSize: aperture size for the :ocv:func:`Sobel` operator.
:param L2gradient: Flag indicating whether a more accurate :math:`L_2` norm :math:`=\sqrt{(dI/dx)^2 + (dI/dy)^2}` should be used to compute the image gradient magnitude ( ``L2gradient=true`` ), or a faster default :math:`L_1` norm :math:`=|dI/dx|+|dI/dy|` is enough ( ``L2gradient=false`` ).
:param L2gradient: a flag, indicating whether a more accurate :math:`L_2` norm :math:`=\sqrt{(dI/dx)^2 + (dI/dy)^2}` should be used to calculate the image gradient magnitude ( ``L2gradient=true`` ), or whether the default :math:`L_1` norm :math:`=|dI/dx|+|dI/dy|` is enough ( ``L2gradient=false`` ).
The function finds edges in the input image ``image`` and marks them in the output map ``edges`` using the Canny algorithm. The smallest value between ``threshold1`` and ``threshold2`` is used for edge linking. The largest value is used to find initial segments of strong edges. See
The function finds edges in the input image ``image`` and marks them in the output map ``edges`` using the Canny algorithm. The smallest value between ``threshold1`` and ``threshold2`` is used for edge linking. The largest value is used to find initial segments of strong edges. See
:param dst: Destination image. It has the size ``dsize`` (when it is non-zero) or the size computed from ``src.size()`` , ``fx`` , and ``fy`` . The type of ``dst`` is the same as of ``src`` .
:param dst: output image; it has the size ``dsize`` (when it is non-zero) or the size computed from ``src.size()``, ``fx``, and ``fy``; the type of ``dst`` is the same as of ``src``.
:param dsize: Destination image size. If it is zero, it is computed as:
:param dsize: output image size; if it equals zero, it is computed as:
.. math::
.. math::
...
@@ -379,19 +379,19 @@ Resizes an image.
...
@@ -379,19 +379,19 @@ Resizes an image.
Either ``dsize`` or both ``fx`` and ``fy`` must be non-zero.
Either ``dsize`` or both ``fx`` and ``fy`` must be non-zero.
:param fx: Scale factor along the horizontal axis. When it is 0, it is computed as
:param fx: scale factor along the horizontal axis; when it equals 0, it is computed as
.. math::
.. math::
\texttt{(double)dsize.width/src.cols}
\texttt{(double)dsize.width/src.cols}
:param fy: Scale factor along the vertical axis. When it is 0, it is computed as
:param fy: scale factor along the vertical axis; when it equals 0, it is computed as
.. math::
.. math::
\texttt{(double)dsize.height/src.rows}
\texttt{(double)dsize.height/src.rows}
:param interpolation: Interpolation method:
:param interpolation: interpolation method:
* **INTER_NEAREST** - a nearest-neighbor interpolation
* **INTER_NEAREST** - a nearest-neighbor interpolation
...
@@ -425,7 +425,7 @@ To shrink an image, it will generally look best with CV_INTER_AREA interpolation
...
@@ -425,7 +425,7 @@ To shrink an image, it will generally look best with CV_INTER_AREA interpolation
warpAffine
warpAffine
--------------
----------
Applies an affine transformation to an image.
Applies an affine transformation to an image.
.. ocv:function:: void warpAffine( InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar& borderValue=Scalar())
.. ocv:function:: void warpAffine( InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar& borderValue=Scalar())
...
@@ -440,19 +440,19 @@ Applies an affine transformation to an image.
...
@@ -440,19 +440,19 @@ Applies an affine transformation to an image.
:param flags: Combination of interpolation methods (see :ocv:func:`resize` ) and the optional flag ``WARP_INVERSE_MAP`` that means that ``M`` is the inverse transformation ( :math:`\texttt{dst}\rightarrow\texttt{src}` ).
:param flags: combination of interpolation methods (see :ocv:func:`resize` ) and the optional flag ``WARP_INVERSE_MAP`` that means that ``M`` is the inverse transformation ( :math:`\texttt{dst}\rightarrow\texttt{src}` ).
:param borderMode: Pixel extrapolation method (see :ocv:func:`borderInterpolate` ). When \ ``borderMode=BORDER_TRANSPARENT`` , it means that the pixels in the destination image corresponding to the "outliers" in the source image are not modified by the function.
:param borderMode: pixel extrapolation method (see :ocv:func:`borderInterpolate`); when \ ``borderMode=BORDER_TRANSPARENT`` , it means that the pixels in the destination image corresponding to the "outliers" in the source image are not modified by the function.
:param borderValue: Value used in case of a constant border. By default, it is 0.
:param borderValue: value used in case of a constant border; by default, it is 0.
The function ``warpAffine`` transforms the source image using the specified matrix:
The function ``warpAffine`` transforms the source image using the specified matrix:
...
@@ -476,7 +476,7 @@ The function cannot operate in-place.
...
@@ -476,7 +476,7 @@ The function cannot operate in-place.
.. note:: ``cvGetQuadrangleSubPix`` is similar to ``cvWarpAffine``, but the outliers are extrapolated using replication border mode.
.. note:: ``cvGetQuadrangleSubPix`` is similar to ``cvWarpAffine``, but the outliers are extrapolated using replication border mode.
warpPerspective
warpPerspective
-------------------
---------------
Applies a perspective transformation to an image.
Applies a perspective transformation to an image.
.. ocv:function:: void warpPerspective( InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar& borderValue=Scalar())
.. ocv:function:: void warpPerspective( InputArray src, OutputArray dst, InputArray M, Size dsize, int flags=INTER_LINEAR, int borderMode=BORDER_CONSTANT, const Scalar& borderValue=Scalar())
...
@@ -487,19 +487,19 @@ Applies a perspective transformation to an image.
...
@@ -487,19 +487,19 @@ Applies a perspective transformation to an image.
:param flags: Combination of interpolation methods (see :ocv:func:`resize` ) and the optional flag ``WARP_INVERSE_MAP`` that means that ``M`` is the inverse transformation ( :math:`\texttt{dst}\rightarrow\texttt{src}` ).
:param flags: combination of interpolation methods (``INTER_LINEAR`` or ``INTER_NEAREST``) and the optional flag ``WARP_INVERSE_MAP``, that sets ``M`` as the inverse transformation ( :math:`\texttt{dst}\rightarrow\texttt{src}` ).
:param borderMode: Pixel extrapolation method (see :ocv:func:`borderInterpolate` ). When \ ``borderMode=BORDER_TRANSPARENT`` , it means that the pixels in the destination image that corresponds to the "outliers" in the source image are not modified by the function.
:param borderMode: pixel extrapolation method (``BORDER_CONSTANT`` or ``BORDER_REPLICATE``).
:param borderValue: Value used in case of a constant border. By default, it is 0.
:param borderValue: value used in case of a constant border; by default, it equals 0.
The function ``warpPerspective`` transforms the source image using the specified matrix:
The function ``warpPerspective`` transforms the source image using the specified matrix:
...
@@ -524,7 +524,7 @@ The function cannot operate in-place.
...
@@ -524,7 +524,7 @@ The function cannot operate in-place.
initUndistortRectifyMap
initUndistortRectifyMap
---------------------------
-----------------------
Computes the undistortion and rectification transformation map.
Computes the undistortion and rectification transformation map.
:param dst: Destination image of the same size and depth as ``src`` .
:param dst: output image of the same size and depth as ``src``.
:param code: Color space conversion code. See the description below.
:param code: color space conversion code (see the description below).
:param dstCn: Number of channels in the destination image. If the parameter is 0, the number of the channels is derived automatically from ``src`` and ``code`` .
:param dstCn: number of channels in the destination image; if the parameter is 0, the number of the channels is derived automatically from ``src`` and ``code`` .
The function converts an input image from one color
The function converts an input image from one color
space to another. In case of a transformation to-from RGB color space, the order of the channels should be specified explicitly (RGB or BGR).
space to another. In case of a transformation to-from RGB color space, the order of the channels should be specified explicitly (RGB or BGR).
...
@@ -408,7 +408,7 @@ The function can do the following transformations:
...
@@ -408,7 +408,7 @@ The function can do the following transformations:
distanceTransform
distanceTransform
---------------------
-----------------
Calculates the distance to the closest zero pixel for each pixel of the source image.
Calculates the distance to the closest zero pixel for each pixel of the source image.
.. ocv:function:: void distanceTransform( InputArray src, OutputArray dst, int distanceType, int maskSize )
.. ocv:function:: void distanceTransform( InputArray src, OutputArray dst, int distanceType, int maskSize )
...
@@ -481,7 +481,7 @@ That is, the function provides a very fast way to compute the Voronoi diagram fo
...
@@ -481,7 +481,7 @@ That is, the function provides a very fast way to compute the Voronoi diagram fo
Currently, the second variant can use only the approximate distance transform algorithm, i.e. ``maskSize=CV_DIST_MASK_PRECISE`` is not supported yet.
Currently, the second variant can use only the approximate distance transform algorithm, i.e. ``maskSize=CV_DIST_MASK_PRECISE`` is not supported yet.
floodFill
floodFill
-------------
---------
Fills a connected component with the given color.
Fills a connected component with the given color.
.. ocv:function:: int floodFill( InputOutputArray image, Point seedPoint, Scalar newVal, Rect* rect=0, Scalar loDiff=Scalar(), Scalar upDiff=Scalar(), int flags=4 )
.. ocv:function:: int floodFill( InputOutputArray image, Point seedPoint, Scalar newVal, Rect* rect=0, Scalar loDiff=Scalar(), Scalar upDiff=Scalar(), int flags=4 )
...
@@ -586,7 +586,7 @@ Use these functions to either mark a connected component with the specified colo
...
@@ -586,7 +586,7 @@ Use these functions to either mark a connected component with the specified colo