1 | initial version |
I hope it will help you :
Mat R= (Mat_<double>(3, 3) << 1, 0, 0, 0, cos(CV_PI/4), -sin(CV_PI / 4), 0, sin(CV_PI / 4),cos(CV_PI / 4));
Mat p= (Mat_<double>(2, 3) << 1, 0, 0, 0,1,0);
for (int i = 0; i < p.rows; i++)
cout << R * p.row(i).t() << endl;