Reputation: 6842
What is the difference in opencv between these two transposes?
Using cv::Mat::t():
cv::Mat a;
a = a.t();
Using cv::transpose():
cv::Mat a;
cv::transpose(a,a);
I'm interested in particular about efficiency.
Upvotes: 14
Views: 20069
Reputation: 16801
There's no difference. Here's the code for cv::Mat::t()
from opencv/modules/core/src/matop.cpp
:
MatExpr MatExpr::t() const
{
MatExpr e;
op->transpose(*this, e);
return e;
}
So cv::Mat::t()
just calls cv::transpose()
.
Upvotes: 14