def get_dH2(lab1, lab2):
 lab1 = np.asarray(lab1)
 lab2 = np.asarray(lab2)
 (a1, b1) = np.rollaxis(lab1, (-1))[1:3]
 (a2, b2) = np.rollaxis(lab2, (-1))[1:3]
 C1 = np.hypot(a1, b1)
 C2 = np.hypot(a2, b2)
 term = ((C1 * C2) - ((a1 * a2) + (b1 * b2)))
 return (2 * term)

def get_dH2 ( lab1 , lab2 ) : lab1 = np . asarray ( lab1 ) lab2 = np . asarray ( lab2 ) ( a1 , b1 ) = np . rollaxis ( lab1 , ( - 1 ) ) [ 1 : 3 ] ( a2 , b2 ) = np . rollaxis ( lab2 , ( - 1 ) ) [ 1 : 3 ] C1 = np . hypot ( a1 , b1 ) C2 = np . hypot ( a2 , b2 ) term = ( ( C1 * C2 ) - ( ( a1 * a2 ) + ( b1 * b2 ) ) ) return ( 2 * term )
squared hue difference term occurring in deltae_cmc and deltae_ciede94 despite its name .