Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ASTDR DeRainbow function v1.49
- function ASTDR(clip input, int "strength", int "tempsoftth", int "tempsoftrad", int "tempsoftsc", float "blstr", int "tht")
- {
- strn = Default(strength, 5)
- blstr = Default(blstr, 0.5)
- tht = Default(tht, 255)
- tschrth = Default(tempsoftth, 30)
- tschrrad = Default(tempsoftrad, 3)
- tschrsc = Default(tempsoftsc, 3)
- momask = input.tweak(sat=1.1).mt_motion(thc2=1,thc1=1,thy2=1,thy1=1,y=3,v=3,u=3,tht=tht)
- momaskinv = momask.Invert().Levels(0,2,255,0,255)
- filtered_uv = input.DeCross(ThresholdY=15, Noise=100, Margin=1).FluxSmoothST(75,75).Mergeluma(input).awarpsharp2(depth=4,chroma=6).hqdn3d(ls=0,lt=0,cs=strn*3/5,ct=strn)
- \ .temporalsoften(tschrrad,0,tschrth,tschrsc,2).blur(blstr).Mergeluma(input).aWarpSharp2(depth=4,chroma=6).fft3dfilter(sigma=1,sigma3=4,plane=3,degrid=1)
- filtered = mt_merge(filtered_uv, input, momaskinv,y=2,u=3,v=3,luma=true)
- mt_merge(input, filtered, momask.mt_expand(mode="both", y=3,u=3,v=3).mt_inflate(y=3,u=3,v=3),y=2,u=3,v=3)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement