Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # VHSHaloremover http://forum.doom9.org/showpost.php?p=1758184&postcount=14
- Function VHSHaloremover(clip input, int "xradius", int "yradius", int "darkthr", int "brightthr", float "blurmix")
- {
- input
- h = Height ()
- w = Width ()
- xradius = Default(xradius, 8)
- yradius = Default(yradius, 1)
- darkthr = Default(darkthr, 122)
- brightthr = Default(brightthr, 134)
- blurmix = Default(blurmix, 0.8)
- cy = BicubicResize (w / xradius, h / yradius, 1, 0).BicubicResize (w, h, 1, 0)
- cmd = mt_makediff (cy)
- cm = cmd.mt_lut ("x brightthr > 255 x darkthr < 255 0 ? ?")
- cr = last.Merge (cy, blurmix)
- mt_merge (last, cr, cm, y=3, u=2, v=2)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement