colour.index_stress

colour.index_stress(d_E, d_V, method='Garcia 2007')[source]

Computes the Kruskal’s Standardized Residual Sum of Squares (:math:`STRESS`) index according to given method.

Parameters
  • d_E (array_like) – Computed colour difference array \(\Delta E\).

  • d_V (array_like) – Computed colour difference array \(\Delta V\).

  • method (unicode, optional) – {‘Garcia 2007’}, Computation method.

Returns

\(STRESS\) index.

Return type

numeric or ndarray

References

[GarciaHMC07]

Examples

>>> d_E = np.array([2.0425, 2.8615, 3.4412])
>>> d_V = np.array([1.2644, 1.2630, 1.8731])
>>> index_stress(d_E, d_V)  
0.1211709...