Why can i not create a rigid3d object from this matrix?
Show older comments
Hi,
i want to use Matlab for SfM. I have have position prior in world coordinates for the views that i read in from a csv file. When i want to create a rigid3d object from my data i get an error as seen in the following example copied from the command window:
posPrior =
1.000000000000000 -0.000113000000000 0.000234000000000 0
0.000114000000000 1.000000000000000 -0.000011000000000 0
-0.000234000000000 0.000011000000000 1.000000000000000 0
0.099970000000000 -0.299979000000000 0.885011000000000 1.000000000000000
Error using rigid3d (line 143)
The transformation matrix is not rigid.
A rigid transformation matrix must only contain a rotation and a translation.
The final column must consist of zeros, except for a one in the last row.
The posPrior matrix is my position i read in from my file. Then when i want to create a rigid3d object with pos = rigid3d(posPrior) i get the error. My matrix has the same structure as the T property so i dont know what im doing wrong here. I tried to separate the Rotation and Translation, but something seems wrong with the Rotation.
Thanks in advance
Accepted Answer
More Answers (0)
Categories
Find more on Trajectory and Scenario Generation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!