Boulder |
01-26-2006 09:18 AM |
Download the latest MaskTools 2.0 alpha : http://manao4.free.fr/
The function is included in the package, Manao included mg262's functions in MaskTools so there's no need to get the LimitedSupport.dll anymore.
Don't forget to apply Soothe:
http://forum.doom9.org/showthread.php?t=99679
Code:
function Soothe(clip sharp, clip orig, int "keep")
{
keep = default(keep, 24)
keep = (keep>100) ? 100 : (keep<0) ? 0 : keep
KP = string(keep)
diff = yv12lutxy(orig,sharp,"x y - 128 +", U=1,V=1)
diff2 = diff.temporalsoften(1,255,255,32,2)
diff3 = yv12lutxy(diff,diff2, "x 128 - y 128 - * 0 < x 128 - 100 / " + KP
\ + " * 128 + x 128 - abs y 128 - abs > x " + KP
\ + " * y 100 " + KP + " - * + 100 / x ? ?", U=1,V=1)
return( yv12lutxy(orig,diff3,"x y 128 - -",U=2,V=2) )
}
This version might work with MaskTools 2.0 alpha, better check it before using though as Manao changed some syntax a while ago:
Code:
function Soothe(clip sharp, clip orig, int "keep")
{
keep = default(keep, 24)
keep = (keep>100) ? 100 : (keep<0) ? 0 : keep
KP = string(keep)
diff = mt_lutxy(orig,sharp,"x y - 128 +", U=1,V=1)
diff2 = diff.temporalsoften(1,255,255,32,2)
diff3 = mt_lutxy(diff,diff2, "x 128 - y 128 - * 0 < x 128 - 100 / " + KP
\ + " * 128 + x 128 - abs y 128 - abs > x " + KP
\ + " * y 100 " + KP + " - * + 100 / x ? ?", U=1,V=1)
return( mt_lutxy(orig,diff3,"x y 128 - -",U=2,V=2) )
}
SeeSaw is discussed here: http://forum.doom9.org/showthread.php?t=104701
http://home.arcor.de/dhanselmann/_st...2006.01.02.rar (I don't know if it's the latest version so check Didée's online directory to make sure)
|