Is it possible to directly apply an affine transformation matrix to a Mayavi ImageActor object?
ImageActor, which ultimately is a wrapper for tvtk.ImageActor, has a user_matrix property, which lets you assign a 4D transformation matrix. Starting with a random image, import numpy as np from mayavi.mlab import imshow s = np.random.random((10, 10)) image = imshow(s, colormap=’gist_earth’, interpolate=False) gives us the following … Creating a transformation matrix and setting a term … Read more