SHOW:
|
|
- or go back to the newest paste.
| 1 | - | # ASTDR DeRainbow function v1.45 |
| 1 | + | # ASTDR DeRainbow function v1.47 |
| 2 | ||
| 3 | - | function ASTDR(clip input, int "strength", int "tempsoftchr", float "blstr", int "tht") |
| 3 | + | function ASTDR(clip input, int "strength", int "tempsoftth", int "tempsoftrad", float "blstr", int "tht") |
| 4 | {
| |
| 5 | strn = Default(strength, 5) | |
| 6 | blstr = Default(blstr, 0.5) | |
| 7 | tht = Default(tht, 255) | |
| 8 | - | tschrth = Default(tempsoftchr, 20) |
| 8 | + | tschrth = Default(tempsoftth, 30) |
| 9 | tschrrad = Default(tempsoftrad, 3) | |
| 10 | ||
| 11 | momask = input.tweak(sat=1.1).mt_motion(thc2=1,thc1=1,thy2=1,thy1=1,y=3,v=3,u=3,tht=tht) | |
| 12 | momaskinv = momask.Invert().Levels(0,2,255,0,255) | |
| 13 | ||
| 14 | - | \ .temporalsoften(5,0,tschrth,5,2).blur(blstr).Mergeluma(input).aWarpSharp2(depth=4,chroma=6).fft3dfilter(sigma=1,sigma3=4,plane=3,degrid=1) |
| 14 | + | |
| 15 | \ .temporalsoften(tschrrad,0,tschrth,5,2).blur(blstr).Mergeluma(input).aWarpSharp2(depth=4,chroma=6).fft3dfilter(sigma=1,sigma3=4,plane=3,degrid=1) | |
| 16 | ||
| 17 | filtered = mt_merge(filtered_uv, input, momaskinv,y=2,u=3,v=3,luma=true) | |
| 18 | ||
| 19 | 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) | |
| 20 | } |