pyvista.ImageData.direction_matrix

pyvista.ImageData.direction_matrix#

property ImageData.direction_matrix: NumpyArray[float][source]#

Set or get the direction matrix.

The direction matrix is a 3x3 matrix which controls the orientation of the image data.

Returns:
np.ndarray

Direction matrix as a 3x3 NumPy array.