Esempio n. 1
0
def lab_to_lch(l, a, b, *rest):
    h = _wrap_lch_h(arctan2(b, a), 2. * pi)
    h /= 2. * pi  # MMA specific
    return (l, sqrt(a * a + b * b), h) + rest
Esempio n. 2
0
 def testSqrt(self):
     self.assertEqualArrays(sqrt([[9, 100], [25, 16]]), [[3, 10], [5, 4]])
Esempio n. 3
0
 def testSqrt(self):
     self.assertEqualArrays(sqrt([[9, 100], [25, 16]]), [[3, 10], [5, 4]])
Esempio n. 4
0
def lab_to_lch(l, a, b, *rest):
    h = _wrap_lch_h(arctan2(b, a), 2. * pi)
    h /= 2. * pi  # MMA specific
    return (l, sqrt(a * a + b * b), h) + rest