Advertisement
tophf

YAHRmask

Jun 25th, 2011
848
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. вызов: YAHRmask()
  2.  
  3.  
  4.  
  5.  
  6. function YAHRmask(clip c, int "expand", int "warpdepth")
  7. {
  8.     c
  9.     expand=default(expand,5)
  10.     warpdepth=default(warpdepth,32)
  11.     vEdge=mt_lutxy(last,mt_expand().mt_expand(),"x y - abs 8 - 7 <<")
  12.     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)
  13. }
  14.  
  15. function YAHR( clip clp, int "warpdepth" )
  16. {# Y'et A'nother H'alo R'educing script
  17.     warpdepth=default(warpdepth,32)
  18.     b1    = clp.minblur(2).removegrain(12,-1)
  19.     b1D   = mt_makediff(clp,b1)
  20.     w1    = clp.aWarpSharp2(depth=warpdepth,blur=2)
  21.     w1b1  = w1.minblur(2,1).removegrain(11,-1)
  22.     w1b1D = mt_makediff(w1,w1b1)
  23.     DD    = b1D.repair(w1b1D,13)
  24.     DD2   = mt_makediff(b1D,DD)
  25.     clp.mt_makediff(DD2,U=2,V=2)
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement