Computes a mean value and a standard deviation of matrix elements.
void gpu::
meanStdDev
(const GpuMat& mtx, Scalar& mean, Scalar& stddev)¶
void gpu::
meanStdDev
(const GpuMat& mtx, Scalar& mean, Scalar& stddev, GpuMat& buf)¶Parameters: |
|
---|
See also
Returns the norm of a matrix (or difference of two matrices).
double gpu::
norm
(const GpuMat& src1, int normType=NORM_L2)¶
double gpu::
norm
(const GpuMat& src1, int normType, GpuMat& buf)¶
double gpu::
norm
(const GpuMat& src1, int normType, const GpuMat& mask, GpuMat& buf)¶
double gpu::
norm
(const GpuMat& src1, const GpuMat& src2, int normType=NORM_L2)¶Parameters: |
|
---|
See also
Returns the sum of matrix elements.
Scalar gpu::
sum
(const GpuMat& src)¶
Scalar gpu::
sum
(const GpuMat& src, GpuMat& buf)¶
Scalar gpu::
sum
(const GpuMat& src, const GpuMat& mask, GpuMat& buf)¶Parameters: |
|
---|
See also
Returns the sum of absolute values for matrix elements.
Scalar gpu::
absSum
(const GpuMat& src)¶
Scalar gpu::
absSum
(const GpuMat& src, GpuMat& buf)¶
Scalar gpu::
absSum
(const GpuMat& src, const GpuMat& mask, GpuMat& buf)¶Parameters: |
|
---|
Returns the squared sum of matrix elements.
Scalar gpu::
sqrSum
(const GpuMat& src)¶
Scalar gpu::
sqrSum
(const GpuMat& src, GpuMat& buf)¶
Scalar gpu::
sqrSum
(const GpuMat& src, const GpuMat& mask, GpuMat& buf)¶Parameters: |
|
---|
Finds global minimum and maximum matrix elements and returns their values.
void gpu::
minMax
(const GpuMat& src, double* minVal, double* maxVal=0, const GpuMat& mask=GpuMat())¶
void gpu::
minMax
(const GpuMat& src, double* minVal, double* maxVal, const GpuMat& mask, GpuMat& buf)¶Parameters: |
|
---|
The function does not work with CV_64F
images on GPUs with the compute capability < 1.3.
See also
Finds global minimum and maximum matrix elements and returns their values with locations.
void gpu::
minMaxLoc
(const GpuMat& src, double* minVal, double* maxVal=0, Point* minLoc=0, Point* maxLoc=0, const GpuMat& mask=GpuMat())¶
void gpu::
minMaxLoc
(const GpuMat& src, double* minVal, double* maxVal, Point* minLoc, Point* maxLoc, const GpuMat& mask, GpuMat& valbuf, GpuMat& locbuf)¶Parameters: |
|
---|
The function does not work with CV_64F
images on GPU with the compute capability < 1.3.
See also
Counts non-zero matrix elements.
int gpu::
countNonZero
(const GpuMat& src)¶
int gpu::
countNonZero
(const GpuMat& src, GpuMat& buf)¶Parameters: |
|
---|
The function does not work with CV_64F
images on GPUs with the compute capability < 1.3.
See also
Reduces a matrix to a vector.
void gpu::
reduce
(const GpuMat& mtx, GpuMat& vec, int dim, int reduceOp, int dtype=-1, Stream& stream=Stream::Null())¶Parameters: |
|
---|
The function reduce
reduces the matrix to a vector by treating the matrix rows/columns as a set of 1D vectors and performing the specified operation on the vectors until a single row/column is obtained. For example, the function can be used to compute horizontal and vertical projections of a raster image. In case of CV_REDUCE_SUM
and CV_REDUCE_AVG
, the output may have a larger element bit-depth to preserve accuracy. And multi-channel arrays are also supported in these two reduction modes.
See also