http://www.cprogramdevelop.com/1985591/

Matlab in the the imread equivalent OpenCV cvLoadImage (imageName, CV_LOAD_IAMGE_ANYDEPTH | CV_LOAD_IMAGE_ANYCOLOR): read out the image information of the original image information (including channel information and bit depth);

rgb2gray equivalent to cvLoadImage (imageName, CV_LOAD_IMAGE_GRAYSCALE): single-channel grayscale;

Or cvCreateImage, cvCvtColor Function Image gray.

Matlab zeros function is equivalent to OpenCV cvSetZero function.

Matlab in point multiplication of two matrices. * Equivalent to OpenCV cvMul function.

Matlab in two matrix points are / equivalent to OpenCV cvDiv function.

Matlab in two matrix add the + equivalent OpenCV cvAdd function.

Matlab in the matrix subtraction - equivalent to OpenCV cvSub function.

Matlab matrix and a constant sum of A + a is equivalent to the OpenCV cvAddS the function cvAdds (Mata, cvScalar (a), MatB).

Matlab matrix and a constant subtraction A - equivalent to the OpenCV cvSubS the function cvSubS (Mata, cvScalar (a) MatB),.

Matlab to matrix assigns an initial value of A (:, = a is equivalent to the OpenCV cvSet the function cvSet (Mata, cvScalar (a)).

10 in Matlab to take a part matrix assigned to another matrix A = B (i: j, m: n) is equivalent to OpenCV cvGetSubRect function cvGetSubRect (mat1, mat2, rect).

11 in Matlab take the matrix maximum, minimum max (max (A)), min (min (A)) is equivalent to OpenCV cvMinMaxLoc function cvMinMaxLoc of the (A minloc maxloc).

In Matlab matrix multiplication A * B is equivalent to OpenCV cvMatMul function cvMatMul (A, B, C).

13 Matlab to calculate the cross product of two three-dimensional vector C = cross (A, B) is equivalent to OpenCV cvCrossProduct function cvCrossProduct (A, B, C).

Matlab to calculate the vector norm c = norm (A) is equivalent to OpenCV cvNorm function, c = cvNorm, (A).

15, the Matlab seeking a two-dimensional matrix singular value decomposition [USV] = svd (A, 0) the equivalent of OpenCV with cvSVD cvSVD (A, s, u, v).

16 Matlab in two matrix left division c = a / b is equivalent to the inside cvInvert OpenCV, cvMatMul two functions: inside cvInvert (a, d); cvMatMul (d, b, c).

17 matlab in the inverse matrix inv function A = inv (B) is equivalent to OpenCV cvInvert function: inside cvInvert (B, A).

18 Matlab matrix divided by a number of A / a is equivalent to the OpenCV function cvConvertScale

19 matlab in the summation function sum equivalent to OpenCV function cvSum

20 point matrix X in the, Matlab will world coordinate the change to the camera coordinate transform R * X + T can function cvMatMulAdd, but should pay attention to the translation is a 3 matrix of rows and N columns.

21 Matlab in a constant matrix multiplication available cvConvertScale.

Matlab in the the imread equivalent OpenCV cvLoadImage (imageName, CV_LOAD_IAMGE_ANYDEPTH | CV_LOAD_IMAGE_ANYCOLOR): read out the image information of the original image information (including channel information and bit depth);

rgb2gray equivalent to cvLoadImage (imageName, CV_LOAD_IMAGE_GRAYSCALE): single-channel grayscale;

Or cvCreateImage, cvCvtColor Function Image gray.

Matlab zeros function is equivalent to OpenCV cvSetZero function.

Matlab in point multiplication of two matrices. * Equivalent to OpenCV cvMul function.

Matlab in two matrix points are / equivalent to OpenCV cvDiv function.

Matlab in two matrix add the + equivalent OpenCV cvAdd function.

Matlab in the matrix subtraction - equivalent to OpenCV cvSub function.

Matlab matrix and a constant sum of A + a is equivalent to the OpenCV cvAddS the function cvAdds (Mata, cvScalar (a), MatB).

Matlab matrix and a constant subtraction A - equivalent to the OpenCV cvSubS the function cvSubS (Mata, cvScalar (a) MatB),.

Matlab to matrix assigns an initial value of A (:, = a is equivalent to the OpenCV cvSet the function cvSet (Mata, cvScalar (a)).

10 in Matlab to take a part matrix assigned to another matrix A = B (i: j, m: n) is equivalent to OpenCV cvGetSubRect function cvGetSubRect (mat1, mat2, rect).

11 in Matlab take the matrix maximum, minimum max (max (A)), min (min (A)) is equivalent to OpenCV cvMinMaxLoc function cvMinMaxLoc of the (A minloc maxloc).

In Matlab matrix multiplication A * B is equivalent to OpenCV cvMatMul function cvMatMul (A, B, C).

13 Matlab to calculate the cross product of two three-dimensional vector C = cross (A, B) is equivalent to OpenCV cvCrossProduct function cvCrossProduct (A, B, C).

Matlab to calculate the vector norm c = norm (A) is equivalent to OpenCV cvNorm function, c = cvNorm, (A).

15, the Matlab seeking a two-dimensional matrix singular value decomposition [USV] = svd (A, 0) the equivalent of OpenCV with cvSVD cvSVD (A, s, u, v).

16 Matlab in two matrix left division c = a / b is equivalent to the inside cvInvert OpenCV, cvMatMul two functions: inside cvInvert (a, d); cvMatMul (d, b, c).

17 matlab in the inverse matrix inv function A = inv (B) is equivalent to OpenCV cvInvert function: inside cvInvert (B, A).

18 Matlab matrix divided by a number of A / a is equivalent to the OpenCV function cvConvertScale

19 matlab in the summation function sum equivalent to OpenCV function cvSum

20 point matrix X in the, Matlab will world coordinate the change to the camera coordinate transform R * X + T can function cvMatMulAdd, but should pay attention to the translation is a 3 matrix of rows and N columns.

21 Matlab in a constant matrix multiplication available cvConvertScale