View Single Post
Old 3rd March 2015, 13:31   #92  |  Link
Kein
Registered User
 
Kein's Avatar
 
Join Date: Mar 2010
Posts: 79
Quote:
Originally Posted by real.finder View Post
my first function, MC DAA3


Code:
#Motion-Compensated Anti-aliasing with contra-sharpening by A.SONY
#some ideas was taken from Didée scripts daa and this http://forum.doom9.org/showthread.php?t=153219
#created because when applied daa3 to fixed scenes, it could damage some details and other issues.

function mcdaa3(clip input) {
sup    = input.HQdn3d.FFT3DFilter.MSuper(pel=2,sharp=1)
fv1    = sup.MAnalyse(isb=false,delta=1,DCT=2,Truemotion=false)
fv2    = sup.MAnalyse(isb=true,delta=1,DCT=2,Truemotion=true)
csaa   = input.daa3mod
momask1 = input.MMask(fv1, kind = 1, ml=2)
momask2 = input.MMask(fv2, kind = 1, ml=3)
momask = mt_average(momask1,momask2,u=3,v=3)
mt_merge(input,csaa,momask,u=3,v=3)
}


#############################

#Anti-aliasing with contra-sharpening by Didée with some modifications

    FUNCTION daa3mod(clip c1) {
c = c1.Spline36Resize(c1.width, c1.height*3/2)
    nn      = c.nnedi3(field=-2)
    dbl     = mt_average(selecteven(nn),selectodd(nn),U=3,V=3)
    dblD    = mt_makediff(c,dbl,U=3,V=3)
    shrpD   = mt_makediff(dbl,dbl.removegrain((width(c)>1100) ? 20 : 11),U=3,V=3)
    DD      = shrpD.repair(dblD,13)
return dbl.mt_adddiff(DD,U=3,V=3).Spline36Resize(c1.width, c1.height)
}
I created this script because daa3 when applied to fixed scenes, it could damage some details such as horizontal lines on the screen

like this example:- original - daa3 - mcdaa3

And here apply of daa3 and mcdaa3 on a moving scene:- original -daa3 -mcdaa3

download link

edit: mcdaa3 and normal daa can deal with ifade too, In fact, the daa function is the remnants Interlaced cleaner after IVTC
Which plugins it requires?
Or, rather, do I need to just invoke the functions with empty parameters or I need to specify clip?

Last edited by Kein; 3rd March 2015 at 13:42.
Kein is offline   Reply With Quote