Log in

View Full Version : eliminate small horizontal lines after deinterlacing and sharpening


byme
12th July 2010, 13:41
using any filter to deinterlace, remain small horizontal lines, amplified by Sharp

this happens mostly if I apply a deinterlacing just strong

I like keep just strong the deinterlacing to maintain more detail

I always used a AAA (reduced) to remove these lines
but removes some small details... and try something better

make This AAA, I called AAASimple, was a very simple work, because I only removed some functions

function AAASimple(clip clp, int "Xres", int "Yres", int "Xshrp", int "Yshrp",
\ int "US", int "DS", bool "chroma")
{
clp = clp.isYV12() ? clp : clp.ConvertToYV12()
ox = clp.width
oy = clp.height
Xres = default(Xres, ox)
Yres = default(Yres, oy)
us = default(us, 1)
ds = default(ds, 2)
Xshrp = default(Xshrp, 0)
Yshrp = default(Yshrp, 0)
chroma = default(chroma, false)

us==0 ? clp.PointResize(ox*2,oy*2) : clp.LanczosResize(ox*2,oy*2)

SangNom()

ds==0 ? BilinearResize(Xres,Yres) :
\ ds==1 ? BicubicResize(Xres,Yres) :
\ LanczosResize(Xres,Yres)

Unfilter(Xshrp,Yshrp)

chroma ? MergeChroma(clp.Lanczosresize(Xres,Yres)) : last

}

examples:


deint+sharp
http://file2.net/thb/100712/7991tn.png (http://file2.net/100712img7991tn.png.html)

deint+sharp+aaasimple
http://file2.net/thb/100712/2860nw.png (http://file2.net/100712img2860nw.png.html)

deint+sharp+aaasimple+denoise
http://file2.net/thb/100712/9615yy.png (http://file2.net/100712img9615yy.png.html)


know suggest a filter more strong, but that maintains as possible detail?

Didée
12th July 2010, 13:56
Vinverse (http://forum.doom9.org/showthread.php?p=896352#post896352). Use immediately after deinterlacing.

byme
12th July 2010, 14:34
thanks Didèe!

looks good