Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- вызов: YAHRmask()
- function YAHRmask(clip c, int "expand", int "warpdepth")
- {
- c
- expand=default(expand,5)
- warpdepth=default(warpdepth,32)
- vEdge=mt_lutxy(last,mt_expand().mt_expand(),"x y - abs 8 - 7 <<")
- mt_merge(yahr(warpdepth),vEdge.binomialblur(expand*2,u=1,v=1).mt_lut("x 4 <<").mt_logic(vEdge.removegrain(12,-1).mt_invert(),"min"),true)
- }
- function YAHR( clip clp, int "warpdepth" )
- {# Y'et A'nother H'alo R'educing script
- warpdepth=default(warpdepth,32)
- b1 = clp.minblur(2).removegrain(12,-1)
- b1D = mt_makediff(clp,b1)
- w1 = clp.aWarpSharp2(depth=warpdepth,blur=2)
- w1b1 = w1.minblur(2,1).removegrain(11,-1)
- w1b1D = mt_makediff(w1,w1b1)
- DD = b1D.repair(w1b1D,13)
- DD2 = mt_makediff(b1D,DD)
- clp.mt_makediff(DD2,U=2,V=2)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement