OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Visualize 4x4 transformation matrices using python

  • Thread starter Thread starter mystic.06
  • Start date Start date
M

mystic.06

Guest
I have two 4x4 transformation matrices consist of 3x3 rotation matrix, 3x1 translation vector and 1x3 scaling vector, which I can get as output in python as:

Code:
matrix_default: [[1.  0.  0.  0.]
                [ 0. 1.  0.  0.]
                [ 0. 0.  1.  0.]
                [ 0. 0.  0.  1.]]

matrix_translated: [[1.  0.  0.  10.]
                   [ 0. 1.  0.  0.]
                   [ 0. 0.  1.  0.]
                   [ 0. 0.  0.  1.]]

I want to visualize both matrices in the same plot with different points and axes so that I can see the applied translation or rotation as simulated here: https://dugas.ch/transform_viewer/multi.html

translation translation and rotation
<p>I have two 4x4 transformation matrices consist of 3x3 rotation matrix, 3x1 translation vector and 1x3 scaling vector, which I can get as output in python as:</p>
<pre><code>matrix_default: [[1. 0. 0. 0.]
[ 0. 1. 0. 0.]
[ 0. 0. 1. 0.]
[ 0. 0. 0. 1.]]

matrix_translated: [[1. 0. 0. 10.]
[ 0. 1. 0. 0.]
[ 0. 0. 1. 0.]
[ 0. 0. 0. 1.]]
</code></pre>
<p>I want to visualize both matrices in the same plot with different points and axes so that I can see the applied translation or rotation as simulated here: <a href="https://dugas.ch/transform_viewer/multi.html" rel="nofollow noreferrer">https://dugas.ch/transform_viewer/multi.html</a></p>
<p><a href="https://i.sstatic.net/taIxRByf.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/taIxRByf.png" alt="translation" /></a>
<a href="https://i.sstatic.net/QYHhu0nZ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/QYHhu0nZ.png" alt="translation and rotation" /></a></p>
 
Top