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

Mapping a C++ vector to an Eigen::Affine3f

Tags: None
(comma "," separated)
pamparana
Registered Member
Posts
18
Karma
0
I have a raw floating array of 12 elements which contain an affine transformation matrix and I would like to map it to an Affine3f object.

The input floating point array actually stores the parameter in a row major sequence, while the Affine3f stores it in a column major format, if I am correct.

Is there nice Eigen recommended way to map such an array to the Affine3f object?
aluaces
Registered Member
Posts
13
Karma
0
OS
Have you tried to specify the parameter of the mapping as a RowMajor transform? According to the documentation, that option is available.

You may also need to use the AffineCompact mode for your 3×4 matrices.
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell, Yahoo [Bot]