如何在 OpenCV 中创建 1 x 1 矩阵?
以下代码似乎不起作用。
T = A*(B_new.t())*(A.t()) + x_bar;
为尺寸2 x 1,x_bar是尺寸1 x 1 x 1的双变量。t的尺寸必须是维度1 x 1。
cv::Matx12d A = cv::Matx12d(1,0);
cv::Matx21d B_new = F_x* A_p *F_x.t() + K_x* L_x* K_x.t();
double x_bar = 100;
矩阵a为尺寸1 x 2,矩阵b_new.t( ) 我收到一条消息:
no operator "+" matches these operands
operand types are: cv::Matx<double, 1, 1> + double
如何更改错误?
The following piece of code doesn't seem to work.
T = A*(B_new.t())*(A.t()) + x_bar;
Matrix A is of dimension 1 by 2, Matrix B_new.t() is of dimension 2 by 1, x_bar is a double variable of dimension 1 by 1. The dimension of T has to be dimension 1 by 1.
cv::Matx12d A = cv::Matx12d(1,0);
cv::Matx21d B_new = F_x* A_p *F_x.t() + K_x* L_x* K_x.t();
double x_bar = 100;
After running the code, I received a message:
no operator "+" matches these operands
operand types are: cv::Matx<double, 1, 1> + double
How to make changes to the error?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论