标签:第一个 输出 www 操作 src images 小结 round 结果
Mat A = Mat(3,3,CV_32FC1,Scalar(0));
Vec3f v (1,2,3);
Mat B = Mat(v);
A.at<float>(0,0)=1;
A.at<float>(0,1)=2;
A.at<float>(0,2)=3;
A.at<float>(1,0)=4;
A.at<float>(1,1)=5;
A.at<float>(1,2)=6;
A.at<float>(1,0)=4;
A.at<float>(1,1)=5;
A.at<float>(1,2)=6;
Mat AB = A*B;
Mat A=Mat::ones(2,3,CV_8UC1);
Mat B=Mat::ones(2,3,CV_8UC1);
A.at<uchar>(0,0)=1;
A.at<uchar>(0,1)=2;
A.at<uchar>(0,2)=3;
A.at<uchar>(1,0)=4;
A.at<uchar>(1,1)=5;
A.at<uchar>(1,2)=6;
B.at<uchar>(0,0)=1;
B.at<uchar>(0,1)=2;
B.at<uchar>(0,2)=3;
B.at<uchar>(1,0)=4;
B.at<uchar>(1,1)=5;
B.at<uchar>(1,2)=6;
double AB=A.dot(B);
Mat A = Mat(3,3,CV_32FC1,Scalar(0));
Mat B = Mat(v);
A.at<float>(0,0)=1;
A.at<float>(0,1)=2;
A.at<float>(0,2)=3;
A.at<float>(1,0)=4;
A.at<float>(1,1)=5;
A.at<float>(1,2)=6;
A.at<float>(1,0)=4;
A.at<float>(1,1)=5;
A.at<float>(1,2)=6;
Mat AB = A*B;
//
Mat C = Mat(3,3,CV_32FC1,Scalar(0));
C = A.clone();
Mat AC = A.mul(C);
标签:第一个 输出 www 操作 src images 小结 round 结果
原文地址:http://www.cnblogs.com/jsxyhelu/p/6977775.html