color_conversions#
Functions#
|
Transform luminance values into Munsell values. |
|
Transform Munsell values to luminance values. |
- stimupy.utils.color_conversions.luminance2munsell(lum_values, reference_white)[source]#
Transform luminance values into Munsell values. The luminance values do not have to correspond to specific units, as long as they are in the same unit as the reference white, because Munsell values are a perceptually uniform scale of relative luminances.
- Parameters:
lum_values (numpy-array)
reference_white (number)
- Returns:
munsell_values (numpy-array)
Reference (H. Pauli, “Proposed extension of the CIE recommendation)
on ‘Uniform color spaces, color difference equations, and metric color
terms’,” J. Opt. Soc. Am. 66, 866-867 (1976)
- stimupy.utils.color_conversions.munsell2luminance(munsell_values, reference_white)[source]#
Transform Munsell values to luminance values. The luminance values will be in the same unit as the reference white, which can be arbitrary as long as the scale is linear.
- Parameters:
munsell_values (numpy-array)
reference_white (number)
- Returns:
lum_values (numpy-array)
Reference (H. Pauli, “Proposed extension of the CIE recommendation)
on ‘Uniform color spaces, color difference equations, and metric color
terms’,” J. Opt. Soc. Am. 66, 866-867 (1976)