ImageData.physical_to_index_matrix

ImageData.physical_to_index_matrix#

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

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

Note

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

Added in version 0.45.

Returns:
np.ndarray

4x4 transformation matrix.