skimage2.color.deltaE_cmc#
- skimage2.color.deltaE_cmc(lab1, lab2, kL=1, kC=1, *, channel_axis=-1)[source]#
Color difference from the CMC l:c standard.
This color difference was developed by the Colour Measurement Committee (CMC) of the Society of Dyers and Colourists (United Kingdom). It is intended for use in the textile industry.
The scale factors
kL,kCset the weight given to differences in lightness and chroma relative to differences in hue. The usual values arekL=2,kC=1for âacceptabilityâ andkL=1,kC=1for âimperceptibilityâ. Colors withdE > 1are âdifferentâ for the given scale factors.- Parameters:
- lab1array_like
reference color (Lab colorspace)
- lab2array_like
comparison color (Lab colorspace)
- channel_axisint, optional
This parameter indicates which axis of the arrays corresponds to channels.
Added in version 0.19:
channel_axiswas added in 0.19.
- Returns:
- dEarray_like
distance between colors
lab1andlab2
Notes
deltaE_cmc the defines the scales for the lightness, hue, and chroma in terms of the first color. Consequently
deltaE_cmc(lab1, lab2) != deltaE_cmc(lab2, lab1)References
[3]F. J. J. Clarke, R. McDonald, and B. Rigg, âModification to the JPC79 colour-difference formula,â J. Soc. Dyers Colour. 100, 128-132 (1984).