SMIL 1.1.1
Loading...
Searching...
No Matches
example-3D-image-rotate.py
1
2import smilPython as sp
3
4imIn = sp.Image(10, 10, 10)
5imOut = sp.Image(im)
6imTmp = sp.Image(im)
7
8# rotation 90 degres around Y axis
9# 1. exchange axes y and z
10sp.matTranspose(imIn, "xzy", imTmp)
11# 2. rotate image around new z axis
12sp.rotateX90(imTmp, 1, imTmp)
13# 3. put axis y back
14sp.matTranspose(imTmp, "xzy", imOut)
15