colour.characterisation.optimisation_factory_JzAzBz

colour.characterisation.optimisation_factory_JzAzBz()[source]

Factory that returns the objective function and CIE XYZ colourspace to optimisation colourspace/colour model function based on the \(J_zA_zB_z\) colourspace.

The objective function returns the euclidean distance between the training data RGB tristimulus values and the training data CIE XYZ tristimulus values** in the \(J_zA_zB_z\) colourspace.

Returns

Objective function and CIE XYZ colourspace to \(J_zA_zB_z\) colourspace function.

Return type

tuple

Examples

>>> # Doctests skip for Python 2.x compatibility.
>>> optimisation_factory_JzAzBz()  
(<function optimisation_factory_JzAzBz.<locals>.objective_function at 0x...>, <function optimisation_factory_JzAzBz.<locals>.XYZ_to_optimization_colour_model at 0x...>)