Computes a matrix-matrix or matrix-scalar sum.
void gpu::add(const GpuMat& a, const GpuMat& b, GpuMat& c, const GpuMat& mask=GpuMat(), int dtype=-1, Stream& stream=Stream::Null() )¶ void gpu::add(const GpuMat& a, const Scalar& sc, GpuMat& c, const GpuMat& mask=GpuMat(), int dtype=-1, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
See also
Computes a matrix-matrix or matrix-scalar difference.
void gpu::subtract(const GpuMat& a, const GpuMat& b, GpuMat& c, const GpuMat& mask=GpuMat(), int dtype=-1, Stream& stream=Stream::Null() )¶ void gpu::subtract(const GpuMat& a, const Scalar& sc, GpuMat& c, const GpuMat& mask=GpuMat(), int dtype=-1, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
See also
Computes a matrix-matrix or matrix-scalar per-element product.
void gpu::multiply(const GpuMat& a, const GpuMat& b, GpuMat& c, double scale=1, int dtype=-1, Stream& stream=Stream::Null() )¶ void gpu::multiply(const GpuMat& a, const Scalar& sc, GpuMat& c, double scale=1, int dtype=-1, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
See also
Computes a matrix-matrix or matrix-scalar division.
void gpu::divide(const GpuMat& a, const GpuMat& b, GpuMat& c, double scale=1, int dtype=-1, Stream& stream=Stream::Null() )¶ void gpu::divide(const GpuMat& a, const Scalar& sc, GpuMat& c, double scale=1, int dtype=-1, Stream& stream=Stream::Null())¶ void gpu::divide(double scale, const GpuMat& b, GpuMat& c, int dtype=-1, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
This function, in contrast to divide(), uses a round-down rounding mode.
See also
Computes the weighted sum of two arrays.
void gpu::addWeighted(const GpuMat& src1, double alpha, const GpuMat& src2, double beta, double gamma, GpuMat& dst, int dtype=-1, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
The function addWeighted calculates the weighted sum of two arrays as follows:
\texttt{dst} (I)= \texttt{saturate} ( \texttt{src1} (I)* \texttt{alpha} + \texttt{src2} (I)* \texttt{beta} + \texttt{gamma} )
where I is a multi-dimensional index of array elements. In case of multi-channel arrays, each channel is processed independently.
See also
Computes an absolute value of each matrix element.
void gpu::abs(const GpuMat& src, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
See also
Computes a square value of each matrix element.
void gpu::sqr(const GpuMat& src, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
Computes a square root of each matrix element.
void gpu::sqrt(const GpuMat& src, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
See also
Computes an exponent of each matrix element.
void gpu::exp(const GpuMat& a, GpuMat& b, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
See also
Computes a natural logarithm of absolute value of each matrix element.
void gpu::log(const GpuMat& a, GpuMat& b, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
See also
Raises every matrix element to a power.
void gpu::pow(const GpuMat& src, double power, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
The function pow raises every element of the input matrix to p :
\texttt{dst} (I) = \fork{\texttt{src}(I)^p}{if \texttt{p} is integer}{|\texttt{src}(I)|^p}{otherwise}
See also
Computes per-element absolute difference of two matrices (or of a matrix and scalar).
void gpu::absdiff(const GpuMat& a, const GpuMat& b, GpuMat& c, Stream& stream=Stream::Null() )¶ void gpu::absdiff(const GpuMat& a, const Scalar& s, GpuMat& c, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
See also
Compares elements of two matrices.
void gpu::compare(const GpuMat& a, const GpuMat& b, GpuMat& c, int cmpop, Stream& stream=Stream::Null() )¶ void gpu::compare(const GpuMat& a, Scalar sc, GpuMat& c, int cmpop, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
See also
Performs a per-element bitwise inversion.
void gpu::bitwise_not(const GpuMat& src, GpuMat& dst, const GpuMat& mask=GpuMat(), Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
Performs a per-element bitwise disjunction of two matrices or of matrix and scalar.
void gpu::bitwise_or(const GpuMat& src1, const GpuMat& src2, GpuMat& dst, const GpuMat& mask=GpuMat(), Stream& stream=Stream::Null())¶ void gpu::bitwise_or(const GpuMat& src1, const Scalar& sc, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
Performs a per-element bitwise conjunction of two matrices or of matrix and scalar.
void gpu::bitwise_and(const GpuMat& src1, const GpuMat& src2, GpuMat& dst, const GpuMat& mask=GpuMat(), Stream& stream=Stream::Null())¶ void gpu::bitwise_and(const GpuMat& src1, const Scalar& sc, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
Performs a per-element bitwise exclusive or operation of two matrices of matrix and scalar.
void gpu::bitwise_xor(const GpuMat& src1, const GpuMat& src2, GpuMat& dst, const GpuMat& mask=GpuMat(), Stream& stream=Stream::Null())¶ void gpu::bitwise_xor(const GpuMat& src1, const Scalar& sc, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
Performs pixel by pixel right shift of an image by a constant value.
void gpu::rshift(const GpuMat& src, Scalar_<int> sc, GpuMat& dst, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
Performs pixel by pixel right left of an image by a constant value.
void gpu::lshift(const GpuMat& src, Scalar_<int> sc, GpuMat& dst, Stream& stream=Stream::Null() )¶| Parameters: |
|
|---|
Computes the per-element minimum of two matrices (or a matrix and a scalar).
void gpu::min(const GpuMat& src1, const GpuMat& src2, GpuMat& dst, Stream& stream=Stream::Null())¶ void gpu::min(const GpuMat& src1, double src2, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
See also
Computes the per-element maximum of two matrices (or a matrix and a scalar).
void gpu::max(const GpuMat& src1, const GpuMat& src2, GpuMat& dst, Stream& stream=Stream::Null())¶ void gpu::max(const GpuMat& src1, double src2, GpuMat& dst, Stream& stream=Stream::Null())¶| Parameters: |
|
|---|
See also