Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #FixDIJaggies 1.0 by Dansolo
- #For fixing jaggies caused by bad deinterlacing in anime
- #Particularly Nadesico
- function FixDIJaggies(clip inclip) {
- downsized=inclip.ReduceBy2()
- upsized=downsized.Spline16Resize(downsized.Width()+downsized.Width(),downsized.Height()+downsized.Height())
- mask=subtract(inclip,upsized)
- smoothmask=mask.eedi3()
- diff=smoothmask.subtract(mask)
- jaggiesremoved=inclip.subtract(diff.mt_invert(Y=3,U=3,V=3))
- return jaggiesremoved
- }
Add Comment
Please, Sign In to add comment