Ask Your Question
0

How to get Q and R in QR decomposition ?

asked 2016-04-29 06:24:01 -0600

gino0717 gravatar image

Hi there,

I have to use QR decomposition to get q and r matrix.I find that solve() function can solve QR decomposition problem. However, I cannot get the q and r matrix in this function as getting some matrix in SVD. Is there any way to get the q and r? It seems a old problem but i cannot find the solution on the internet.

edit retag flag offensive close merge delete

Comments

well, I find some code here

http://suzuichibolgpg.blog.fc2.com/bl...

gino0717 gravatar imagegino0717 ( 2016-05-12 20:54:34 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-04-29 21:20:04 -0600

Tetragramm gravatar image

That's not really OpenCV's thing. It has the solve() function for basic tasks, but if you really need linear algebra use something like Eigen. You can use the Eigen::Map to avoid copying the data. It'll take a bit of playing with the template parameters, since OpenCV is row major and Eigen is column major by default, but they have good documentation.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-04-29 06:24:01 -0600

Seen: 671 times

Last updated: Apr 29 '16