to_phase_index#

OrientationMap.to_phase_index()[source]#

Convert the orientation map to a set of phase ids

Returns:

The phase ids for each pixel in the orientation map or None if the simulation does not have multiple phases.

Return type:

np.ndarray or None