First time here? Check out the FAQ!

Ask Your Question
1

opencv solve linear equation system too slow

asked May 27 '14

tidy gravatar image

I used solve function to solve Ax=b problem. The A is large (about 40000*7000). But it is very slow. Even slower than matlab. By the way, I used the SVD method. Any suggestion?

Preview: (hide)

1 answer

Sort by » oldest newest most voted
3

answered May 27 '14

AFAIK, OpenCV is not designed for solving matrix related operation like: multiplication, eigenvalue decomposition or SVD, etc., so your result is not surprise to me. For your problem, there two kinds of choice: the first choice is using a dedicated library, lapack or Eigen is recommended, the second one is using a wrapped library, such as Armadillo or CVMlib. I have tested all of them, or you can see more at this, and my choice is lapack, which gives the fastest speed (on Windows, with VS IDE). Hope this help.

Preview: (hide)

Question Tools

1 follower

Stats

Asked: May 27 '14

Seen: 2,196 times

Last updated: May 27 '14