Matrix operations in the OPENCV

Source: Internet
Author: User

Function

Description

Description

Cvadd

elementwise addition of the arrays

Two array of corresponding elements and

Cvadds

elementwise addition of an array and a scalar

The and of an array and a scalar corresponding element

cvaddweighted

Elementwise weighted addition of the arrays (alpha blending)

Weighted sum of two arrays of elements (alpha blending)

Cvsub

Elementwise subtraction of one array from another

Subtract the corresponding elements from two arrays

Cvsubs

Elementwise subtraction of a scalar from an array

Subtracts an array of elements by a scalar

Cvsubrs

Elementwise subtraction of an array from a scalar

Subtract a scalar from an array of elements

Cvmul

Elementwise Multiplication of the arrays

Multiplication of two arrays of corresponding elements

Cvdotproduct

Compute dot product of vectors

Calculates the multiplication of two vectors

Cvcrossproduct

Compute cross product of three-dimensional vectors

Cross-multiplication of two three-dimensional vectors

Cvgemm

Generalized matrix multiplication

Multiplication of generalized matrices

Cvdiv

Elementwise Division of one array by another

Division of an array and the corresponding elements of another array

Cvabs

Absolute value of all elements in an array

Absolute value of all elements in an array

Cvabsdiff

Absolute value of diff erences between and arrays

Absolute value of two array difference

Cvabsdiffs

Absolute value of diff erence between an array and a scalar

An absolute value of the difference between an array and a scalar

Cvmin

Elementwise min operation on both arrays

Minimum action for the corresponding element in two arrays

Cvmins

Elementwise min operation between an array and a scalar

An array of elements and a vector to do the least value operation

Cvmax

Elementwise Max operation on the arrays

Maximum action for the corresponding element in two arrays

Cvmaxs

Elementwise Max operation between an array and a scalar

An array of elements and a vector to do the maximum value operation

Cvminmaxloc

Find minimum and maximum values in an array

Finding the maximum and minimum values in an array

Cvavg

Average value of all elements in an array

Average of all elements in an array

Cvavgstd

Absolute value and standard deviation of any elements in an array

Average and standard deviation of all elements in an array

Cvsum

Sum all elements of an array

Sum all elements of an array

Cvcountnonzero

Count nonzero elements in an array

Count non-0 elements in an array

Cvgetrow

Copy elements from row slice of an array

Copy a row of elements in an array

Cvgetrows

Copy elements from multiple adjacent rows of an array

Copy adjacent multiline elements in an array

Cvgetcol

Copy elements from column slice of an array

Copy a list of elements in an array

Cvgetcols

Copy elements from multiple adjacent columns of an array

Copy adjacent multi-column elements in an array

Cvgetsubrect

Copy elements from subregion of an array

Copy an element of a neutron region of an array

Cvgetdiag

Copy elements from an array diagonal

Copy Array diagonal elements

Cvand

Elementwise Bit-level and of arrays

Position and manipulate the corresponding elements of two arrays

Cvnot

Bitwise inversion of every element of an array

bitwise inverse of each element in an array

Cvor

Elementwise Bit-level OR of arrays

The corresponding elements of the two arrays are taken as a bitwise inverse.

Cvors

Elementwise Bit-level OR of an array and a scalar

Takes an array of elements and a scalar back

Cvxor

Elementwise bit-level XOR between-arrays

Make a different or operation of the corresponding elements in two arrays

Cvxors

Elementwise Bit-level XOR between an array and a scalar

Make an array of elements and a scalar do different or operation

Cvgetdims

Return the number of dimensions of an array

Returns the number of dimensions of an array

Cvgetdimsize

Return the sizes of dimensions of an array

Returns the dimensions of all dimensions of an array

Cvgetsize

Get size of a two-dimensional array and return as Cvsize

Gets the dimensions of the two-dimensional array, returning a cvsize structure

Cvcopy

Copy elements of one array to another

Copies an array of elements to another array

Cvrepeat

Tile the contents of one array into another

To spread the contents of an array into another

Cvsplit

Split a multichannel array into multiple single-channel arrays

Decompose a multi-channel array into multiple single-channel arrays

Cvmerge

Merge several single-channel images into one multichannel image

Merging several single-channel images into one multi-channel image

Cvcvtcolor

Convert channels of an array from one color space to another

Convert an array of channels from one color space to another

Cvreduce

Reduce a two-dimensional array to a vector by a given operation

Reduces a two-dimensional array to a vector based on a given operation

Cvconvertscale

Convert array type with optional rescaling of the value

Cvconvertscaleabs

Convert array type after absolute value with optional rescaling

Cvset

Set all elements of an array to a given value

Assigns all the elements in an array to a given value

Cvsetzero

Set all elements of a array to 0

Assigns a value of 0 to all elements in the array

Cvzero

Set all elements of a array to 0

Set all elements in the array to 0

Cvflip

Flip an array about a selected axis

Flips the array relative to a selected axis

Cvnormalize

Normalize elements in a array to some value

To gauge the elements in an array to a value

Cvtranspose

Transpose all elements of an array across the diagonal

Transpose all elements relative to the diagonal

Cvsetidentity

Set all elements of a array to 1 for the diagonal and 0 otherwise

The diagonal element of the array is assigned 1, the other 0

Cvcalccovarmatrix

Compute covariance of a set of n-dimensional vectors

Covariance of a set of n-dimensional vectors

Cvdet

Compute determinant of a square matrix

Calculates the value of a square determinant

Cveigenvv

Compute eigenvalues and eigenvectors of a square matrix

Calculate the eigenvalues and eigenvectors of a square matrix

Cvinvert

Invert a square matrix

Inverse matrix for calculating matrices

Cvmahalonobis

Compute mahalonobis distance between, vectors

Calculates the Markov distance of two vectors (Mahalonobis distance)

Cvnorm

Compute normalized correlations between, arrays

Calculating the coefficient of a two-phase array

Cvsvd

Compute singular value decomposition of a two-dimensional array

Compute singular value decomposition of a two-dimensional array

Cvsvbksb

Compute Singular value back-substitution

Calculate the singular value of the return generation

Cvtrace

Compute the trace of an array

Computes the trace of an array

Cvsolve

Solve a system of linear equations

Solving a linear equation

Cvinrange

Test if elements of an array is within values of the other arrays

Tests whether the value of an element in an array is between the values of another two arrays

Cvinranges

Test if elements of an array is in range between-scalars

Tests whether an element on an array is between two scalars

cvcmp

Apply selected comparison operator to all elements in both arrays

Select a comparison operation for all elements in two arrays

Cvcmps

Apply selected comparison operator to an array relative to a scalar

A comparison operation that is selected between an array and a scalar

Matrix operations in the OPENCV

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.