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