View Single Post
Old 28th January 2015, 22:24   #3  |  Link
Stormborec
Registered User
 
Join Date: Feb 2013
Posts: 161
Can coloryuv2 does something like this? :

Code:
y = converttoy8()
u = utoy8()
v = vtoy8()
y_scaled = y.bilinearresize(width(u), height(u))
u_adjusted = mt_lutxy(u,y_scaled,expr="x 128 - 1.10 * 128 + y 16 - 0.06918 * +")
v_adjusted = mt_lutxy(v,y_scaled,expr="x 128 - 1.30 * 128 + y 16 - 0.02525 * -")

ytouv(u_adjusted,v_adjusted,y)

Last edited by Stormborec; 29th January 2015 at 19:56.
Stormborec is offline   Reply With Quote