Log in

View Full Version : Can chroma and/or luma from two different scenes be merged seamlessly?


Chainmax
5th April 2007, 01:01
On a recent capture, I had to do heavy antialiasing (AAA+EEDI2) to the first 6 frames. As a result, they are slightly duller than frame 7 onwards. I was wondering if there was a way to merge luma or chroma from one of the later frames into the first six ones without creating ghosting.

Terranigma
5th April 2007, 01:32
On a recent capture, I had to do heavy antialiasing (AAA+EEDI2) to the first 6 frames. As a result, they are slightly duller than frame 7 onwards. I was wondering if there was a way to merge luma or chroma from one of the later frames into the first six ones without creating ghosting.
How about instead using masktools's support utilities to do the differences with aaa & eedi2 to restore the sharpness?

Chainmax
5th April 2007, 03:20
The antialiasing was done on frames 0 to 5, are you saying that I should use something like MT_MakeDiff(frame6,frame0) right after AAA+EEDI2?

Terranigma
5th April 2007, 15:15
The antialiasing was done on frames 0 to 5, are you saying that I should use something like MT_MakeDiff(frame6,frame0) right after AAA+EEDI2?
What you could do, is make AAA + EEDI2 with contra-sharpen into a custom script

function AAAEEDICS (clip clp){
clp
your anti-alias here
return( last )}
Then You can use conditional reader/filter with boolean values for frames 0 - 5

ovrT = "C:\aliasedframes.txt"
ovr=Last
effect = AAAEEDICS()
ConditionalFilter(ovr, effect, "Value", "==", "false",false)
ConditionalReader(ovrT,"Value",false)

Below is how the readme text for conditionareader would be used.

type bool
default false
r 0 5t

Chainmax
5th April 2007, 20:12
I see. Your method worked perfectly, thanks :) http://smilies.vidahost.com/otn/wink/thumb.gif. If I also wanted to apply the effect to frames 1387 to 1397 then the text file for conditionalreader would have to be like this:

type bool
default false
r 0 5t
r 1387 1397t

, right?

Terranigma
5th April 2007, 20:16
yes, exactly :)