This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to use SVD decompositin to get rotation & scaling parts?

Tags: None
(comma "," separated)
hsharma
Registered Member
Posts
11
Karma
0
Hi,
I very newbie question but how can I get rotation and scaling matrices using SVD decomposition?
I am sorry but I didn't find any example.

Thanks in advance.
jitseniesen
Registered Member
Posts
204
Karma
2
hsharma wrote:I very newbie question but how can I get rotation and scaling matrices using SVD decomposition?

The page on the JacobiSVD class in the API documentation comes with an example showing its basic usage. The rotation matrices is built from the singular vectors, and the scaling matrix from the singular values. I hope that is enough explanation for you.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
You can simply put your matrix into an Affine3d (or similar) object and use computeRotationScaling:
http://eigen.tuxfamily.org/dox-devel/cl ... a9db9f8b4c

It does what you want for you.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]