#NEWLINE# def XYZ100_to_CIELab( XYZ100 , XYZ100_w ) : #NEWLINE# #INDENT# XYZ100 = np . asarray ( XYZ100 , dtype = float ) #NEWLINE# XYZ100_w = as_XYZ100_w ( XYZ100_w ) #NEWLINE# fXYZ100_norm = _f ( ( a / XYZ100_w ) ) #NEWLINE# L = ( ( 116 * fXYZ100_norm [ ... , 1 : 2 ] ) - 16 ) #NEWLINE# a = ( 500 * ( fXYZ100_norm [ ... , 0 : 1 ] - fXYZ100_norm [ ... , 1 : 2 ] ) ) #NEWLINE# b = ( 200 * ( fXYZ100_norm [ ... , 1 : 2 ] - fXYZ100_norm [ ... , 2 : 3 ] ) ) #NEWLINE# return np . concatenate ( ( L , a , b ) , axis = ( - 1 ) )