ASTDR and ASTDRmc

a guest
Jan 25th, 2016
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
1. # ASTDR DeRainbow function v1.52
2.
3.   function ASTDR(clip input, int "strength", int "tempsoftth", int "tempsoftrad", int "tempsoftsc", float "blstr", int "tht", int "FluxStv", int "dcn", bool "edgem")
4.   {
5.   strn          = Default(strength, 5)
6.   blstr         = Default(blstr, 0.5)
7.   tht           = Default(tht, 255)
8.   tschrth       = Default(tempsoftth, 30)
10.   tschrsc       = Default(tempsoftsc, 3)
11.   FluxStv       = Default(FluxStv, 75)
12.   dcn           = Default(dcn, 15)
13.   edgem         = default(edgem, false)
14.
17.
18.   filtered_uv = input.DeCross(ThresholdY=15, Noise=dcn, Margin=1).FluxSmoothST(FluxStv,FluxStv).Mergeluma(input).awarpsharp2(depth=4,chroma=6,cplace="MPEG2").hqdn3d(ls=0,lt=0,cs=strn*3/5,ct=strn)
20.
21.   filtered = mt_merge(filtered_uv, input, momaskinv,y=2,u=3,v=3,luma=true)
22.
24.   edgem ? mt_merge(input, last, input.mt_edge("sobel", 4, 4, 4, 4, u=3, v=3).mt_expand(u=3, v=3).mt_inflate(u=3, v=3),y=2,u=3,v=3,luma=true) : last
25.   }
26.
27. # ASTDRmc DeRainbow function v1.0
28.
29.   function ASTDRmc(clip prerb, int "strength", int "tempsoftth", int "tempsoftrad", int "tempsoftsc", float "blstr", int "tht", int "FluxStv", int "dcn", bool "edgem")
30.   {