1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-29 15:23:05 +04:00

coordinate system widget implementation, update pose fix

This commit is contained in:
ozantonkal
2013-07-04 18:19:06 +03:00
parent 03cc439b08
commit ecdd8513fd
4 changed files with 66 additions and 13 deletions
+5
View File
@@ -31,6 +31,11 @@ public:
void updatePose(const Affine3f& pose)
{
vtkSmartPointer<vtkMatrix4x4> matrix = actor->GetUserMatrix();
if (!matrix)
{
setPose(pose);
return ;
}
Matx44f matrix_cv = convertToMatx(matrix);
Affine3f updated_pose = pose * Affine3f(matrix_cv);