Ask Your Question
0

Matrix exponential

asked 2017-10-19 15:44:40 -0600

How do I compute the matrix exponential of an opencv cv::Mat ?

let's say I have a 3x3 matrix represented as a cv::Mat a:

double adata[3][3] = {{0,1,0}, {0,2,1}, {2,1,1}};
cv::Mat a(3, 3, CV_64F, adata);

I would like to compute the matrix exponential of this matrix:

[[  1.82106018,   4.11230735,   1.67667333],
 [  3.35334666,  11.72234821,   5.78898068],
 [  4.87126803,   9.14232734,   5.93336753]]

Does opencv provide a strightforward way to do this?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-10-19 20:52:40 -0600

Tetragramm gravatar image

Nope. OpenCv has only basic support for matrix operations. Most of what it does support is actually implemented with Eigen. Conveniently, it does provide functions that convert from a cv::Mat to an Eigen Matrix HERE.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-10-19 15:44:40 -0600

Seen: 1,213 times

Last updated: Oct 19 '17