pyvista.ImageData.index_to_physical_matrix

pyvista.ImageData.index_to_physical_matrix#

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

Return or set 4x4 matrix to convert coordinates from index space (ijk) to physical space (xyz).

Note

Setting this property modifies the object’s origin, spacing, and direction_matrix properties.

Returns:
np.ndarray

4x4 transformation matrix.