replace y with l in luv2rgb to make more sense
This commit is contained in:
parent
9bdbbe291e
commit
cafcaae557
|
@ -22,10 +22,10 @@ def yuv2rgb(y, u, v):
|
||||||
b = max(0.0, y + 2.033 * u)
|
b = max(0.0, y + 2.033 * u)
|
||||||
return r, g, b
|
return r, g, b
|
||||||
|
|
||||||
def luv2rgb(y, u, v):
|
def luv2rgb(l, u, v):
|
||||||
r = max(0.0, y + v)
|
r = max(0.0, l + v)
|
||||||
g = max(0.0, y - 0.707 * u - 0.707 * v)
|
g = max(0.0, l - 0.707 * u - 0.707 * v)
|
||||||
b = max(0.0, y + u)
|
b = max(0.0, l + u)
|
||||||
return r, g, b
|
return r, g, b
|
||||||
|
|
||||||
def ntscInitRGB(angle):
|
def ntscInitRGB(angle):
|
||||||
|
|
Loading…
Reference in New Issue