View Single Post
Old 23rd November 2008, 19:08   #7  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by JohnnyMalaria View Post
i.e., new chroma = old chroma - average of all chroma values in reference frame ( + the zero offset, e.g., 128 for unsigned 8-bit representation)

Our software uses this method. I'm sure AVISynth has all the necessary mathematical functions to do it, too.
I think this is what ColorYUV(autowhite=true) does, except that it doesn't use a reference frame, so the documentation has a caveat:
Quote:
But be careful - it isn't very intelligent - if your material is a clear blue sky, autowhite will make it completely grey!
It could certainly be done (including reference frame) using ScriptClip and AverageChromaU/V.
Gavino is offline   Reply With Quote