Advertisement
Guest User

Untitled

a guest
Jan 17th, 2015
339
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Using this (more proper) method to deal with RGB content yields better results
  2. r = ShowRed("YV12")
  3. g = ShowGreen("YV12")
  4. b = ShowBlue("YV12")
  5. interleave(r,g,b)
  6.  
  7.     uv   = 3
  8.     sstr = 2.7
  9.     amnt = 255
  10.     uv2  = uv
  11.     STR  = string(sstr)
  12.     AMN  = string(amnt)
  13.     clp=last
  14.  
  15.     vblur  = clp.mt_convolution("50 99 50","1",U=uv,V=uv)
  16.     hblur  = clp.mt_convolution("1","50 99 50",U=uv,V=uv)
  17.     masky  = mt_luts (vblur, hblur, mode="avg", pixels=mt_circle(1)+string(0), expr="x y - abs 2 > 255 0 ?" )
  18.     vblur = mt_merge(clp,vblur,masky)
  19.  
  20. # limiting to no less than pixel change of 13 to exclude faint checkerboard blur
  21.     mt_lutxy(clp,vblur,"x y - abs 13 < x y ?")
  22.  
  23. # from here use gdapt dither detection algo to mask out text, sprites...
  24.  
  25. # back to RGB
  26. mergergb(SelectEvery (3, 0), SelectEvery (3, 1), SelectEvery (3, 2))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement