pyvista.ImageData.physical_to_index_matrix

pyvista.ImageData.physical_to_index_matrix#

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

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

Note

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

Returns:
np.ndarray

4x4 transformation matrix.