fixed docs
This commit is contained in:
@@ -5,11 +5,11 @@ Arithm Operations on Matrices
|
||||
|
||||
|
||||
|
||||
gpu::gemm
|
||||
---------
|
||||
cuda::gemm
|
||||
----------
|
||||
Performs generalized matrix multiplication.
|
||||
|
||||
.. ocv:function:: void gpu::gemm(InputArray src1, InputArray src2, double alpha, InputArray src3, double beta, OutputArray dst, int flags = 0, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::gemm(InputArray src1, InputArray src2, double alpha, InputArray src3, double beta, OutputArray dst, int flags = 0, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First multiplied input matrix that should have ``CV_32FC1`` , ``CV_64FC1`` , ``CV_32FC2`` , or ``CV_64FC2`` type.
|
||||
|
||||
@@ -43,11 +43,11 @@ The function performs generalized matrix multiplication similar to the ``gemm``
|
||||
|
||||
|
||||
|
||||
gpu::mulSpectrums
|
||||
-----------------
|
||||
cuda::mulSpectrums
|
||||
------------------
|
||||
Performs a per-element multiplication of two Fourier spectrums.
|
||||
|
||||
.. ocv:function:: void gpu::mulSpectrums(InputArray src1, InputArray src2, OutputArray dst, int flags, bool conjB=false, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::mulSpectrums(InputArray src1, InputArray src2, OutputArray dst, int flags, bool conjB=false, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First spectrum.
|
||||
|
||||
@@ -55,7 +55,7 @@ Performs a per-element multiplication of two Fourier spectrums.
|
||||
|
||||
:param dst: Destination spectrum.
|
||||
|
||||
:param flags: Mock parameter used for CPU/GPU interfaces similarity.
|
||||
:param flags: Mock parameter used for CPU/CUDA interfaces similarity.
|
||||
|
||||
:param conjB: Optional flag to specify if the second spectrum needs to be conjugated before the multiplication.
|
||||
|
||||
@@ -67,11 +67,11 @@ Only full (not packed) ``CV_32FC2`` complex spectrums in the interleaved format
|
||||
|
||||
|
||||
|
||||
gpu::mulAndScaleSpectrums
|
||||
-------------------------
|
||||
cuda::mulAndScaleSpectrums
|
||||
--------------------------
|
||||
Performs a per-element multiplication of two Fourier spectrums and scales the result.
|
||||
|
||||
.. ocv:function:: void gpu::mulAndScaleSpectrums(InputArray src1, InputArray src2, OutputArray dst, int flags, float scale, bool conjB=false, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::mulAndScaleSpectrums(InputArray src1, InputArray src2, OutputArray dst, int flags, float scale, bool conjB=false, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First spectrum.
|
||||
|
||||
@@ -79,7 +79,7 @@ Performs a per-element multiplication of two Fourier spectrums and scales the re
|
||||
|
||||
:param dst: Destination spectrum.
|
||||
|
||||
:param flags: Mock parameter used for CPU/GPU interfaces similarity.
|
||||
:param flags: Mock parameter used for CPU/CUDA interfaces similarity.
|
||||
|
||||
:param scale: Scale constant.
|
||||
|
||||
@@ -91,11 +91,11 @@ Only full (not packed) ``CV_32FC2`` complex spectrums in the interleaved format
|
||||
|
||||
|
||||
|
||||
gpu::dft
|
||||
--------
|
||||
cuda::dft
|
||||
---------
|
||||
Performs a forward or inverse discrete Fourier transform (1D or 2D) of the floating point matrix.
|
||||
|
||||
.. ocv:function:: void gpu::dft(InputArray src, OutputArray dst, Size dft_size, int flags=0, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::dft(InputArray src, OutputArray dst, Size dft_size, int flags=0, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix (real or complex).
|
||||
|
||||
@@ -127,9 +127,9 @@ The source matrix should be continuous, otherwise reallocation and data copying
|
||||
|
||||
|
||||
|
||||
gpu::Convolution
|
||||
----------------
|
||||
.. ocv:class:: gpu::Convolution : public Algorithm
|
||||
cuda::Convolution
|
||||
-----------------
|
||||
.. ocv:class:: cuda::Convolution : public Algorithm
|
||||
|
||||
Base class for convolution (or cross-correlation) operator. ::
|
||||
|
||||
@@ -141,11 +141,11 @@ Base class for convolution (or cross-correlation) operator. ::
|
||||
|
||||
|
||||
|
||||
gpu::Convolution::convolve
|
||||
cuda::Convolution::convolve
|
||||
---------------------------
|
||||
Computes a convolution (or cross-correlation) of two images.
|
||||
|
||||
.. ocv:function:: void gpu::Convolution::convolve(InputArray image, InputArray templ, OutputArray result, bool ccorr = false, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::Convolution::convolve(InputArray image, InputArray templ, OutputArray result, bool ccorr = false, Stream& stream = Stream::Null())
|
||||
|
||||
:param image: Source image. Only ``CV_32FC1`` images are supported for now.
|
||||
|
||||
@@ -159,9 +159,9 @@ Computes a convolution (or cross-correlation) of two images.
|
||||
|
||||
|
||||
|
||||
gpu::createConvolution
|
||||
----------------------
|
||||
Creates implementation for :ocv:class:`gpu::Convolution` .
|
||||
cuda::createConvolution
|
||||
-----------------------
|
||||
Creates implementation for :ocv:class:`cuda::Convolution` .
|
||||
|
||||
.. ocv:function:: Ptr<Convolution> createConvolution(Size user_block_size = Size())
|
||||
|
||||
|
@@ -5,13 +5,13 @@ Core Operations on Matrices
|
||||
|
||||
|
||||
|
||||
gpu::merge
|
||||
----------
|
||||
cuda::merge
|
||||
-----------
|
||||
Makes a multi-channel matrix out of several single-channel matrices.
|
||||
|
||||
.. ocv:function:: void gpu::merge(const GpuMat* src, size_t n, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::merge(const GpuMat* src, size_t n, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
.. ocv:function:: void gpu::merge(const std::vector<GpuMat>& src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::merge(const std::vector<GpuMat>& src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Array/vector of source matrices.
|
||||
|
||||
@@ -25,13 +25,13 @@ Makes a multi-channel matrix out of several single-channel matrices.
|
||||
|
||||
|
||||
|
||||
gpu::split
|
||||
----------
|
||||
cuda::split
|
||||
-----------
|
||||
Copies each plane of a multi-channel matrix into an array.
|
||||
|
||||
.. ocv:function:: void gpu::split(InputArray src, GpuMat* dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::split(InputArray src, GpuMat* dst, Stream& stream = Stream::Null())
|
||||
|
||||
.. ocv:function:: void gpu::split(InputArray src, vector<GpuMat>& dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::split(InputArray src, vector<GpuMat>& dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix.
|
||||
|
||||
@@ -43,11 +43,11 @@ Copies each plane of a multi-channel matrix into an array.
|
||||
|
||||
|
||||
|
||||
gpu::transpose
|
||||
--------------
|
||||
cuda::transpose
|
||||
---------------
|
||||
Transposes a matrix.
|
||||
|
||||
.. ocv:function:: void gpu::transpose(InputArray src1, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::transpose(InputArray src1, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: Source matrix. 1-, 4-, 8-byte element sizes are supported for now.
|
||||
|
||||
@@ -59,11 +59,11 @@ Transposes a matrix.
|
||||
|
||||
|
||||
|
||||
gpu::flip
|
||||
---------
|
||||
cuda::flip
|
||||
----------
|
||||
Flips a 2D matrix around vertical, horizontal, or both axes.
|
||||
|
||||
.. ocv:function:: void gpu::flip(InputArray src, OutputArray dst, int flipCode, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::flip(InputArray src, OutputArray dst, int flipCode, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix. Supports 1, 3 and 4 channels images with ``CV_8U``, ``CV_16U``, ``CV_32S`` or ``CV_32F`` depth.
|
||||
|
||||
@@ -83,9 +83,9 @@ Flips a 2D matrix around vertical, horizontal, or both axes.
|
||||
|
||||
|
||||
|
||||
gpu::LookUpTable
|
||||
----------------
|
||||
.. ocv:class:: gpu::LookUpTable : public Algorithm
|
||||
cuda::LookUpTable
|
||||
-----------------
|
||||
.. ocv:class:: cuda::LookUpTable : public Algorithm
|
||||
|
||||
Base class for transform using lookup table. ::
|
||||
|
||||
@@ -99,11 +99,11 @@ Base class for transform using lookup table. ::
|
||||
|
||||
|
||||
|
||||
gpu::LookUpTable::transform
|
||||
---------------------------
|
||||
cuda::LookUpTable::transform
|
||||
----------------------------
|
||||
Transforms the source matrix into the destination matrix using the given look-up table: ``dst(I) = lut(src(I))`` .
|
||||
|
||||
.. ocv:function:: void gpu::LookUpTable::transform(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::LookUpTable::transform(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix. ``CV_8UC1`` and ``CV_8UC3`` matrices are supported for now.
|
||||
|
||||
@@ -113,9 +113,9 @@ Transforms the source matrix into the destination matrix using the given look-up
|
||||
|
||||
|
||||
|
||||
gpu::createLookUpTable
|
||||
----------------------
|
||||
Creates implementation for :ocv:class:`gpu::LookUpTable` .
|
||||
cuda::createLookUpTable
|
||||
-----------------------
|
||||
Creates implementation for :ocv:class:`cuda::LookUpTable` .
|
||||
|
||||
.. ocv:function:: Ptr<LookUpTable> createLookUpTable(InputArray lut)
|
||||
|
||||
@@ -123,11 +123,11 @@ Creates implementation for :ocv:class:`gpu::LookUpTable` .
|
||||
|
||||
|
||||
|
||||
gpu::copyMakeBorder
|
||||
-----------------------
|
||||
cuda::copyMakeBorder
|
||||
--------------------
|
||||
Forms a border around an image.
|
||||
|
||||
.. ocv:function:: void gpu::copyMakeBorder(InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, Scalar value = Scalar(), Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::copyMakeBorder(InputArray src, OutputArray dst, int top, int bottom, int left, int right, int borderType, Scalar value = Scalar(), Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source image. ``CV_8UC1`` , ``CV_8UC4`` , ``CV_32SC1`` , and ``CV_32FC1`` types are supported.
|
||||
|
||||
|
@@ -1,6 +1,6 @@
|
||||
*************************************************
|
||||
gpuarithm. GPU-accelerated Operations on Matrices
|
||||
*************************************************
|
||||
***************************************************
|
||||
cudaarithm. CUDA-accelerated Operations on Matrices
|
||||
***************************************************
|
||||
|
||||
.. toctree::
|
||||
:maxdepth: 1
|
||||
|
@@ -5,11 +5,11 @@ Per-element Operations
|
||||
|
||||
|
||||
|
||||
gpu::add
|
||||
--------
|
||||
cuda::add
|
||||
---------
|
||||
Computes a matrix-matrix or matrix-scalar sum.
|
||||
|
||||
.. ocv:function:: void gpu::add(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), int dtype = -1, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::add(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), int dtype = -1, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -27,11 +27,11 @@ Computes a matrix-matrix or matrix-scalar sum.
|
||||
|
||||
|
||||
|
||||
gpu::subtract
|
||||
-------------
|
||||
cuda::subtract
|
||||
--------------
|
||||
Computes a matrix-matrix or matrix-scalar difference.
|
||||
|
||||
.. ocv:function:: void gpu::subtract(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), int dtype = -1, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::subtract(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), int dtype = -1, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -49,11 +49,11 @@ Computes a matrix-matrix or matrix-scalar difference.
|
||||
|
||||
|
||||
|
||||
gpu::multiply
|
||||
-------------
|
||||
cuda::multiply
|
||||
--------------
|
||||
Computes a matrix-matrix or matrix-scalar per-element product.
|
||||
|
||||
.. ocv:function:: void gpu::multiply(InputArray src1, InputArray src2, OutputArray dst, double scale = 1, int dtype = -1, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::multiply(InputArray src1, InputArray src2, OutputArray dst, double scale = 1, int dtype = -1, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -71,13 +71,13 @@ Computes a matrix-matrix or matrix-scalar per-element product.
|
||||
|
||||
|
||||
|
||||
gpu::divide
|
||||
-----------
|
||||
cuda::divide
|
||||
------------
|
||||
Computes a matrix-matrix or matrix-scalar division.
|
||||
|
||||
.. ocv:function:: void gpu::divide(InputArray src1, InputArray src2, OutputArray dst, double scale = 1, int dtype = -1, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::divide(InputArray src1, InputArray src2, OutputArray dst, double scale = 1, int dtype = -1, Stream& stream = Stream::Null())
|
||||
|
||||
.. ocv:function:: void gpu::divide(double src1, InputArray src2, OutputArray dst, int dtype = -1, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::divide(double src1, InputArray src2, OutputArray dst, int dtype = -1, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or a scalar.
|
||||
|
||||
@@ -97,11 +97,11 @@ This function, in contrast to :ocv:func:`divide`, uses a round-down rounding mod
|
||||
|
||||
|
||||
|
||||
gpu::absdiff
|
||||
------------
|
||||
cuda::absdiff
|
||||
-------------
|
||||
Computes per-element absolute difference of two matrices (or of a matrix and scalar).
|
||||
|
||||
.. ocv:function:: void gpu::absdiff(InputArray src1, InputArray src2, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::absdiff(InputArray src1, InputArray src2, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -115,11 +115,11 @@ Computes per-element absolute difference of two matrices (or of a matrix and sca
|
||||
|
||||
|
||||
|
||||
gpu::abs
|
||||
--------
|
||||
cuda::abs
|
||||
---------
|
||||
Computes an absolute value of each matrix element.
|
||||
|
||||
.. ocv:function:: void gpu::abs(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::abs(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix.
|
||||
|
||||
@@ -131,11 +131,11 @@ Computes an absolute value of each matrix element.
|
||||
|
||||
|
||||
|
||||
gpu::sqr
|
||||
--------
|
||||
cuda::sqr
|
||||
---------
|
||||
Computes a square value of each matrix element.
|
||||
|
||||
.. ocv:function:: void gpu::sqr(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::sqr(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix.
|
||||
|
||||
@@ -145,11 +145,11 @@ Computes a square value of each matrix element.
|
||||
|
||||
|
||||
|
||||
gpu::sqrt
|
||||
---------
|
||||
cuda::sqrt
|
||||
----------
|
||||
Computes a square root of each matrix element.
|
||||
|
||||
.. ocv:function:: void gpu::sqrt(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::sqrt(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix.
|
||||
|
||||
@@ -161,11 +161,11 @@ Computes a square root of each matrix element.
|
||||
|
||||
|
||||
|
||||
gpu::exp
|
||||
--------
|
||||
cuda::exp
|
||||
---------
|
||||
Computes an exponent of each matrix element.
|
||||
|
||||
.. ocv:function:: void gpu::exp(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::exp(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix.
|
||||
|
||||
@@ -177,11 +177,11 @@ Computes an exponent of each matrix element.
|
||||
|
||||
|
||||
|
||||
gpu::log
|
||||
--------
|
||||
cuda::log
|
||||
---------
|
||||
Computes a natural logarithm of absolute value of each matrix element.
|
||||
|
||||
.. ocv:function:: void gpu::log(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::log(InputArray src, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix.
|
||||
|
||||
@@ -193,11 +193,11 @@ Computes a natural logarithm of absolute value of each matrix element.
|
||||
|
||||
|
||||
|
||||
gpu::pow
|
||||
--------
|
||||
cuda::pow
|
||||
---------
|
||||
Raises every matrix element to a power.
|
||||
|
||||
.. ocv:function:: void gpu::pow(InputArray src, double power, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::pow(InputArray src, double power, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix.
|
||||
|
||||
@@ -217,11 +217,11 @@ The function ``pow`` raises every element of the input matrix to ``power`` :
|
||||
|
||||
|
||||
|
||||
gpu::compare
|
||||
------------
|
||||
cuda::compare
|
||||
-------------
|
||||
Compares elements of two matrices (or of a matrix and scalar).
|
||||
|
||||
.. ocv:function:: void gpu::compare(InputArray src1, InputArray src2, OutputArray dst, int cmpop, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::compare(InputArray src1, InputArray src2, OutputArray dst, int cmpop, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -244,11 +244,11 @@ Compares elements of two matrices (or of a matrix and scalar).
|
||||
|
||||
|
||||
|
||||
gpu::bitwise_not
|
||||
----------------
|
||||
cuda::bitwise_not
|
||||
-----------------
|
||||
Performs a per-element bitwise inversion.
|
||||
|
||||
.. ocv:function:: void gpu::bitwise_not(InputArray src, OutputArray dst, InputArray mask = noArray(), Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::bitwise_not(InputArray src, OutputArray dst, InputArray mask = noArray(), Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix.
|
||||
|
||||
@@ -260,11 +260,11 @@ Performs a per-element bitwise inversion.
|
||||
|
||||
|
||||
|
||||
gpu::bitwise_or
|
||||
---------------
|
||||
cuda::bitwise_or
|
||||
----------------
|
||||
Performs a per-element bitwise disjunction of two matrices (or of matrix and scalar).
|
||||
|
||||
.. ocv:function:: void gpu::bitwise_or(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::bitwise_or(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -278,11 +278,11 @@ Performs a per-element bitwise disjunction of two matrices (or of matrix and sca
|
||||
|
||||
|
||||
|
||||
gpu::bitwise_and
|
||||
----------------
|
||||
cuda::bitwise_and
|
||||
-----------------
|
||||
Performs a per-element bitwise conjunction of two matrices (or of matrix and scalar).
|
||||
|
||||
.. ocv:function:: void gpu::bitwise_and(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::bitwise_and(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -296,11 +296,11 @@ Performs a per-element bitwise conjunction of two matrices (or of matrix and sca
|
||||
|
||||
|
||||
|
||||
gpu::bitwise_xor
|
||||
----------------
|
||||
cuda::bitwise_xor
|
||||
-----------------
|
||||
Performs a per-element bitwise ``exclusive or`` operation of two matrices (or of matrix and scalar).
|
||||
|
||||
.. ocv:function:: void gpu::bitwise_xor(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::bitwise_xor(InputArray src1, InputArray src2, OutputArray dst, InputArray mask = noArray(), Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -314,11 +314,11 @@ Performs a per-element bitwise ``exclusive or`` operation of two matrices (or of
|
||||
|
||||
|
||||
|
||||
gpu::rshift
|
||||
-----------
|
||||
cuda::rshift
|
||||
------------
|
||||
Performs pixel by pixel right shift of an image by a constant value.
|
||||
|
||||
.. ocv:function:: void gpu::rshift(InputArray src, Scalar_<int> val, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::rshift(InputArray src, Scalar_<int> val, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix. Supports 1, 3 and 4 channels images with integers elements.
|
||||
|
||||
@@ -330,11 +330,11 @@ Performs pixel by pixel right shift of an image by a constant value.
|
||||
|
||||
|
||||
|
||||
gpu::lshift
|
||||
-----------
|
||||
cuda::lshift
|
||||
------------
|
||||
Performs pixel by pixel right left of an image by a constant value.
|
||||
|
||||
.. ocv:function:: void gpu::lshift(InputArray src, Scalar_<int> val, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::lshift(InputArray src, Scalar_<int> val, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source matrix. Supports 1, 3 and 4 channels images with ``CV_8U`` , ``CV_16U`` or ``CV_32S`` depth.
|
||||
|
||||
@@ -346,11 +346,11 @@ Performs pixel by pixel right left of an image by a constant value.
|
||||
|
||||
|
||||
|
||||
gpu::min
|
||||
--------
|
||||
cuda::min
|
||||
---------
|
||||
Computes the per-element minimum of two matrices (or a matrix and a scalar).
|
||||
|
||||
.. ocv:function:: void gpu::min(InputArray src1, InputArray src2, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::min(InputArray src1, InputArray src2, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -364,11 +364,11 @@ Computes the per-element minimum of two matrices (or a matrix and a scalar).
|
||||
|
||||
|
||||
|
||||
gpu::max
|
||||
--------
|
||||
cuda::max
|
||||
---------
|
||||
Computes the per-element maximum of two matrices (or a matrix and a scalar).
|
||||
|
||||
.. ocv:function:: void gpu::max(InputArray src1, InputArray src2, OutputArray dst, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::max(InputArray src1, InputArray src2, OutputArray dst, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source matrix or scalar.
|
||||
|
||||
@@ -382,11 +382,11 @@ Computes the per-element maximum of two matrices (or a matrix and a scalar).
|
||||
|
||||
|
||||
|
||||
gpu::addWeighted
|
||||
----------------
|
||||
cuda::addWeighted
|
||||
-----------------
|
||||
Computes the weighted sum of two arrays.
|
||||
|
||||
.. ocv:function:: void gpu::addWeighted(InputArray src1, double alpha, InputArray src2, double beta, double gamma, OutputArray dst, int dtype = -1, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::addWeighted(InputArray src1, double alpha, InputArray src2, double beta, double gamma, OutputArray dst, int dtype = -1, Stream& stream = Stream::Null())
|
||||
|
||||
:param src1: First source array.
|
||||
|
||||
@@ -416,11 +416,11 @@ where ``I`` is a multi-dimensional index of array elements. In case of multi-cha
|
||||
|
||||
|
||||
|
||||
gpu::threshold
|
||||
--------------
|
||||
cuda::threshold
|
||||
---------------
|
||||
Applies a fixed-level threshold to each array element.
|
||||
|
||||
.. ocv:function:: double gpu::threshold(InputArray src, OutputArray dst, double thresh, double maxval, int type, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: double cuda::threshold(InputArray src, OutputArray dst, double thresh, double maxval, int type, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source array (single-channel).
|
||||
|
||||
@@ -438,13 +438,13 @@ Applies a fixed-level threshold to each array element.
|
||||
|
||||
|
||||
|
||||
gpu::magnitude
|
||||
--------------
|
||||
cuda::magnitude
|
||||
---------------
|
||||
Computes magnitudes of complex matrix elements.
|
||||
|
||||
.. ocv:function:: void gpu::magnitude(InputArray xy, OutputArray magnitude, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::magnitude(InputArray xy, OutputArray magnitude, Stream& stream = Stream::Null())
|
||||
|
||||
.. ocv:function:: void gpu::magnitude(InputArray x, InputArray y, OutputArray magnitude, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::magnitude(InputArray x, InputArray y, OutputArray magnitude, Stream& stream = Stream::Null())
|
||||
|
||||
:param xy: Source complex matrix in the interleaved format ( ``CV_32FC2`` ).
|
||||
|
||||
@@ -460,13 +460,13 @@ Computes magnitudes of complex matrix elements.
|
||||
|
||||
|
||||
|
||||
gpu::magnitudeSqr
|
||||
-----------------
|
||||
cuda::magnitudeSqr
|
||||
------------------
|
||||
Computes squared magnitudes of complex matrix elements.
|
||||
|
||||
.. ocv:function:: void gpu::magnitudeSqr(InputArray xy, OutputArray magnitude, Stream& stream=Stream::Null() )
|
||||
.. ocv:function:: void cuda::magnitudeSqr(InputArray xy, OutputArray magnitude, Stream& stream=Stream::Null() )
|
||||
|
||||
.. ocv:function:: void gpu::magnitudeSqr(InputArray x, InputArray y, OutputArray magnitude, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::magnitudeSqr(InputArray x, InputArray y, OutputArray magnitude, Stream& stream = Stream::Null())
|
||||
|
||||
:param xy: Source complex matrix in the interleaved format ( ``CV_32FC2`` ).
|
||||
|
||||
@@ -480,11 +480,11 @@ Computes squared magnitudes of complex matrix elements.
|
||||
|
||||
|
||||
|
||||
gpu::phase
|
||||
----------
|
||||
cuda::phase
|
||||
-----------
|
||||
Computes polar angles of complex matrix elements.
|
||||
|
||||
.. ocv:function:: void gpu::phase(InputArray x, InputArray y, OutputArray angle, bool angleInDegrees = false, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::phase(InputArray x, InputArray y, OutputArray angle, bool angleInDegrees = false, Stream& stream = Stream::Null())
|
||||
|
||||
:param x: Source matrix containing real components ( ``CV_32FC1`` ).
|
||||
|
||||
@@ -500,11 +500,11 @@ Computes polar angles of complex matrix elements.
|
||||
|
||||
|
||||
|
||||
gpu::cartToPolar
|
||||
----------------
|
||||
cuda::cartToPolar
|
||||
-----------------
|
||||
Converts Cartesian coordinates into polar.
|
||||
|
||||
.. ocv:function:: void gpu::cartToPolar(InputArray x, InputArray y, OutputArray magnitude, OutputArray angle, bool angleInDegrees = false, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::cartToPolar(InputArray x, InputArray y, OutputArray magnitude, OutputArray angle, bool angleInDegrees = false, Stream& stream = Stream::Null())
|
||||
|
||||
:param x: Source matrix containing real components ( ``CV_32FC1`` ).
|
||||
|
||||
@@ -522,11 +522,11 @@ Converts Cartesian coordinates into polar.
|
||||
|
||||
|
||||
|
||||
gpu::polarToCart
|
||||
----------------
|
||||
cuda::polarToCart
|
||||
-----------------
|
||||
Converts polar coordinates into Cartesian.
|
||||
|
||||
.. ocv:function:: void gpu::polarToCart(InputArray magnitude, InputArray angle, OutputArray x, OutputArray y, bool angleInDegrees = false, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::polarToCart(InputArray magnitude, InputArray angle, OutputArray x, OutputArray y, bool angleInDegrees = false, Stream& stream = Stream::Null())
|
||||
|
||||
:param magnitude: Source matrix containing magnitudes ( ``CV_32FC1`` ).
|
||||
|
||||
|
@@ -5,17 +5,17 @@ Matrix Reductions
|
||||
|
||||
|
||||
|
||||
gpu::norm
|
||||
---------
|
||||
cuda::norm
|
||||
----------
|
||||
Returns the norm of a matrix (or difference of two matrices).
|
||||
|
||||
.. ocv:function:: double gpu::norm(InputArray src1, int normType)
|
||||
.. ocv:function:: double cuda::norm(InputArray src1, int normType)
|
||||
|
||||
.. ocv:function:: double gpu::norm(InputArray src1, int normType, GpuMat& buf)
|
||||
.. ocv:function:: double cuda::norm(InputArray src1, int normType, GpuMat& buf)
|
||||
|
||||
.. ocv:function:: double gpu::norm(InputArray src1, int normType, InputArray mask, GpuMat& buf)
|
||||
.. ocv:function:: double cuda::norm(InputArray src1, int normType, InputArray mask, GpuMat& buf)
|
||||
|
||||
.. ocv:function:: double gpu::norm(InputArray src1, InputArray src2, int normType=NORM_L2)
|
||||
.. ocv:function:: double cuda::norm(InputArray src1, InputArray src2, int normType=NORM_L2)
|
||||
|
||||
:param src1: Source matrix. Any matrices except 64F are supported.
|
||||
|
||||
@@ -31,15 +31,15 @@ Returns the norm of a matrix (or difference of two matrices).
|
||||
|
||||
|
||||
|
||||
gpu::sum
|
||||
--------
|
||||
cuda::sum
|
||||
---------
|
||||
Returns the sum of matrix elements.
|
||||
|
||||
.. ocv:function:: Scalar gpu::sum(InputArray src)
|
||||
.. ocv:function:: Scalar cuda::sum(InputArray src)
|
||||
|
||||
.. ocv:function:: Scalar gpu::sum(InputArray src, GpuMat& buf)
|
||||
.. ocv:function:: Scalar cuda::sum(InputArray src, GpuMat& buf)
|
||||
|
||||
.. ocv:function:: Scalar gpu::sum(InputArray src, InputArray mask, GpuMat& buf)
|
||||
.. ocv:function:: Scalar cuda::sum(InputArray src, InputArray mask, GpuMat& buf)
|
||||
|
||||
:param src: Source image of any depth except for ``CV_64F`` .
|
||||
|
||||
@@ -51,15 +51,15 @@ Returns the sum of matrix elements.
|
||||
|
||||
|
||||
|
||||
gpu::absSum
|
||||
-----------
|
||||
cuda::absSum
|
||||
------------
|
||||
Returns the sum of absolute values for matrix elements.
|
||||
|
||||
.. ocv:function:: Scalar gpu::absSum(InputArray src)
|
||||
.. ocv:function:: Scalar cuda::absSum(InputArray src)
|
||||
|
||||
.. ocv:function:: Scalar gpu::absSum(InputArray src, GpuMat& buf)
|
||||
.. ocv:function:: Scalar cuda::absSum(InputArray src, GpuMat& buf)
|
||||
|
||||
.. ocv:function:: Scalar gpu::absSum(InputArray src, InputArray mask, GpuMat& buf)
|
||||
.. ocv:function:: Scalar cuda::absSum(InputArray src, InputArray mask, GpuMat& buf)
|
||||
|
||||
:param src: Source image of any depth except for ``CV_64F`` .
|
||||
|
||||
@@ -69,15 +69,15 @@ Returns the sum of absolute values for matrix elements.
|
||||
|
||||
|
||||
|
||||
gpu::sqrSum
|
||||
-----------
|
||||
cuda::sqrSum
|
||||
------------
|
||||
Returns the squared sum of matrix elements.
|
||||
|
||||
.. ocv:function:: Scalar gpu::sqrSum(InputArray src)
|
||||
.. ocv:function:: Scalar cuda::sqrSum(InputArray src)
|
||||
|
||||
.. ocv:function:: Scalar gpu::sqrSum(InputArray src, GpuMat& buf)
|
||||
.. ocv:function:: Scalar cuda::sqrSum(InputArray src, GpuMat& buf)
|
||||
|
||||
.. ocv:function:: Scalar gpu::sqrSum(InputArray src, InputArray mask, GpuMat& buf)
|
||||
.. ocv:function:: Scalar cuda::sqrSum(InputArray src, InputArray mask, GpuMat& buf)
|
||||
|
||||
:param src: Source image of any depth except for ``CV_64F`` .
|
||||
|
||||
@@ -87,13 +87,13 @@ Returns the squared sum of matrix elements.
|
||||
|
||||
|
||||
|
||||
gpu::minMax
|
||||
-----------
|
||||
cuda::minMax
|
||||
------------
|
||||
Finds global minimum and maximum matrix elements and returns their values.
|
||||
|
||||
.. ocv:function:: void gpu::minMax(InputArray src, double* minVal, double* maxVal=0, InputArray mask=noArray())
|
||||
.. ocv:function:: void cuda::minMax(InputArray src, double* minVal, double* maxVal=0, InputArray mask=noArray())
|
||||
|
||||
.. ocv:function:: void gpu::minMax(InputArray src, double* minVal, double* maxVal, InputArray mask, GpuMat& buf)
|
||||
.. ocv:function:: void cuda::minMax(InputArray src, double* minVal, double* maxVal, InputArray mask, GpuMat& buf)
|
||||
|
||||
:param src: Single-channel source image.
|
||||
|
||||
@@ -111,13 +111,13 @@ The function does not work with ``CV_64F`` images on GPUs with the compute capab
|
||||
|
||||
|
||||
|
||||
gpu::minMaxLoc
|
||||
--------------
|
||||
cuda::minMaxLoc
|
||||
---------------
|
||||
Finds global minimum and maximum matrix elements and returns their values with locations.
|
||||
|
||||
.. ocv:function:: void gpu::minMaxLoc(InputArray src, double* minVal, double* maxVal=0, Point* minLoc=0, Point* maxLoc=0, InputArray mask=noArray())
|
||||
.. ocv:function:: void cuda::minMaxLoc(InputArray src, double* minVal, double* maxVal=0, Point* minLoc=0, Point* maxLoc=0, InputArray mask=noArray())
|
||||
|
||||
.. ocv:function:: void gpu::minMaxLoc(InputArray src, double* minVal, double* maxVal, Point* minLoc, Point* maxLoc, InputArray mask, GpuMat& valbuf, GpuMat& locbuf)
|
||||
.. ocv:function:: void cuda::minMaxLoc(InputArray src, double* minVal, double* maxVal, Point* minLoc, Point* maxLoc, InputArray mask, GpuMat& valbuf, GpuMat& locbuf)
|
||||
|
||||
:param src: Single-channel source image.
|
||||
|
||||
@@ -141,13 +141,13 @@ Finds global minimum and maximum matrix elements and returns their values with l
|
||||
|
||||
|
||||
|
||||
gpu::countNonZero
|
||||
-----------------
|
||||
cuda::countNonZero
|
||||
------------------
|
||||
Counts non-zero matrix elements.
|
||||
|
||||
.. ocv:function:: int gpu::countNonZero(InputArray src)
|
||||
.. ocv:function:: int cuda::countNonZero(InputArray src)
|
||||
|
||||
.. ocv:function:: int gpu::countNonZero(InputArray src, GpuMat& buf)
|
||||
.. ocv:function:: int cuda::countNonZero(InputArray src, GpuMat& buf)
|
||||
|
||||
:param src: Single-channel source image.
|
||||
|
||||
@@ -159,11 +159,11 @@ The function does not work with ``CV_64F`` images on GPUs with the compute capab
|
||||
|
||||
|
||||
|
||||
gpu::reduce
|
||||
-----------
|
||||
cuda::reduce
|
||||
------------
|
||||
Reduces a matrix to a vector.
|
||||
|
||||
.. ocv:function:: void gpu::reduce(InputArray mtx, OutputArray vec, int dim, int reduceOp, int dtype = -1, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::reduce(InputArray mtx, OutputArray vec, int dim, int reduceOp, int dtype = -1, Stream& stream = Stream::Null())
|
||||
|
||||
:param mtx: Source 2D matrix.
|
||||
|
||||
@@ -191,12 +191,12 @@ The function ``reduce`` reduces the matrix to a vector by treating the matrix ro
|
||||
|
||||
|
||||
|
||||
gpu::meanStdDev
|
||||
---------------
|
||||
cuda::meanStdDev
|
||||
----------------
|
||||
Computes a mean value and a standard deviation of matrix elements.
|
||||
|
||||
.. ocv:function:: void gpu::meanStdDev(InputArray mtx, Scalar& mean, Scalar& stddev)
|
||||
.. ocv:function:: void gpu::meanStdDev(InputArray mtx, Scalar& mean, Scalar& stddev, GpuMat& buf)
|
||||
.. ocv:function:: void cuda::meanStdDev(InputArray mtx, Scalar& mean, Scalar& stddev)
|
||||
.. ocv:function:: void cuda::meanStdDev(InputArray mtx, Scalar& mean, Scalar& stddev, GpuMat& buf)
|
||||
|
||||
:param mtx: Source matrix. ``CV_8UC1`` matrices are supported for now.
|
||||
|
||||
@@ -210,11 +210,11 @@ Computes a mean value and a standard deviation of matrix elements.
|
||||
|
||||
|
||||
|
||||
gpu::rectStdDev
|
||||
---------------
|
||||
cuda::rectStdDev
|
||||
----------------
|
||||
Computes a standard deviation of integral images.
|
||||
|
||||
.. ocv:function:: void gpu::rectStdDev(InputArray src, InputArray sqr, OutputArray dst, Rect rect, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::rectStdDev(InputArray src, InputArray sqr, OutputArray dst, Rect rect, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source image. Only the ``CV_32SC1`` type is supported.
|
||||
|
||||
@@ -228,13 +228,13 @@ Computes a standard deviation of integral images.
|
||||
|
||||
|
||||
|
||||
gpu::normalize
|
||||
--------------
|
||||
cuda::normalize
|
||||
---------------
|
||||
Normalizes the norm or value range of an array.
|
||||
|
||||
.. ocv:function:: void gpu::normalize(InputArray src, OutputArray dst, double alpha = 1, double beta = 0, int norm_type = NORM_L2, int dtype = -1, InputArray mask = noArray())
|
||||
.. ocv:function:: void cuda::normalize(InputArray src, OutputArray dst, double alpha = 1, double beta = 0, int norm_type = NORM_L2, int dtype = -1, InputArray mask = noArray())
|
||||
|
||||
.. ocv:function:: void gpu::normalize(InputArray src, OutputArray dst, double alpha, double beta, int norm_type, int dtype, InputArray mask, GpuMat& norm_buf, GpuMat& cvt_buf)
|
||||
.. ocv:function:: void cuda::normalize(InputArray src, OutputArray dst, double alpha, double beta, int norm_type, int dtype, InputArray mask, GpuMat& norm_buf, GpuMat& cvt_buf)
|
||||
|
||||
:param src: Input array.
|
||||
|
||||
@@ -258,13 +258,13 @@ Normalizes the norm or value range of an array.
|
||||
|
||||
|
||||
|
||||
gpu::integral
|
||||
-------------
|
||||
cuda::integral
|
||||
--------------
|
||||
Computes an integral image.
|
||||
|
||||
.. ocv:function:: void gpu::integral(InputArray src, OutputArray sum, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::integral(InputArray src, OutputArray sum, Stream& stream = Stream::Null())
|
||||
|
||||
.. ocv:function:: void gpu::integral(InputArray src, OutputArray sum, GpuMat& buffer, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::integral(InputArray src, OutputArray sum, GpuMat& buffer, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source image. Only ``CV_8UC1`` images are supported for now.
|
||||
|
||||
@@ -278,13 +278,13 @@ Computes an integral image.
|
||||
|
||||
|
||||
|
||||
gpu::sqrIntegral
|
||||
----------------
|
||||
cuda::sqrIntegral
|
||||
-----------------
|
||||
Computes a squared integral image.
|
||||
|
||||
.. ocv:function:: void gpu::sqrIntegral(InputArray src, OutputArray sqsum, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::sqrIntegral(InputArray src, OutputArray sqsum, Stream& stream = Stream::Null())
|
||||
|
||||
.. ocv:function:: void gpu::sqrIntegral(InputArray src, OutputArray sqsum, GpuMat& buf, Stream& stream = Stream::Null())
|
||||
.. ocv:function:: void cuda::sqrIntegral(InputArray src, OutputArray sqsum, GpuMat& buf, Stream& stream = Stream::Null())
|
||||
|
||||
:param src: Source image. Only ``CV_8UC1`` images are supported for now.
|
||||
|
||||
|
Reference in New Issue
Block a user