Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

dot product

i try to get the dot product of 2 matrices A and B.

double dA[] = {
    1.0, 2.0,
    1.7, 0.8,
    0.6, 1.0
    }; 
    Mat A = Mat(3, 2, CV_32FC1, dA );
    double dB[] = {
    1.2, 0.0, 1.7,
    0.4, 1.3, 0.1
    };
    Mat B = Mat( 3,2,  CV_32FC1, dB );
    double b = dot(&dA,&dB);          //  but i get error here

Error:no instance of function template "cv::dot" matches the argument list

how can i use thes function or any other function to get the dot product of this 2 matrices

dot product

i try to get the dot product of 2 matrices A and B.

double dA[] = {
    1.0, 2.0,
    1.7, 0.8,
    0.6, 1.0
    }; 
    Mat A = Mat(3, 2, CV_32FC1, dA );
    double dB[] = {
    1.2, 0.0, 1.7,
    0.4, 1.3, 0.1
    };
    Mat B = Mat( 3,2,  CV_32FC1, dB );
    double b = dot(&dA,&dB); dot(A,B);          //  but i get error here

Error:no instance of function template "cv::dot" matches the argument list

how can i use thes function or any other function to get the dot product of this 2 matrices