MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / main

Function main

week10/examples/exampleMat/matexample.cpp:6–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4using namespace std;
5
6int main()
7{
8 float a[6]={1.0f, 1.0f, 1.0f, 2.0f, 2.0f, 2.0f};
9 float b[6]={1.0f, 2.0f, 3.0f, 4.0f, 5.0f, 6.0f};
10 cv::Mat A(2, 3, CV_32FC1, a);
11 cv::Mat B(3, 2, CV_32FC1, b);
12
13 cv::Mat C = A * B;
14
15 cout << "Matrix C = " << endl
16 << C << endl;
17 return 0;
18}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected