Ask Your Question

Revision history [back]

Matrix exponential

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?