# ASTDR and ASTDRmc

a guest
Jan 25th, 2016
168
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.   {
32. derbsuper = prerb.MSuper()
33. derbbackward_vectors = MAnalyse(derbsuper, truemotion = true, isb = true, chroma=false)
34. derbforward_vectors = MAnalyse(derbsuper, truemotion = true, isb = false, chroma=false)
35. derbforward_compensation = prerb.MCompensate(derbsuper, derbforward_vectors)
36. derbbackward_compensation = prerb.MCompensate(derbsuper, derbbackward_vectors)
37. mcclip = interleave(derbforward_compensation,prerb,derbbackward_compensation)