My project for animes - Animfiltra

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
zdark
Joined: Sun May 20, 2007 8:15 pm
Org Profile

My project for animes - Animfiltra

Post by zdark » Mon Feb 04, 2008 7:56 am

Release: v0.1b

Download


Source:

Code: Select all

# Autor: Alyser & zdark   #baka-br - irc.irchighway.net #annbr
#
#Masktools 1.5.8 e MVTools 0.9.9.1(http://jourdan.madism.org/~manao/), Deen e Removegrain,
#Avisynth 2.5.6 e YV12 colorspace
# Import("Animfiltra-v0.1b")
# Animfiltra()

function AnimFiltra ( clip source,int "radius", int "thrY", int "thrUV", float "ti")
{
radius = default( radius, 3 )
thrY = default( thrY, 4 )
thrUV = default( thrUV, 5 )
ti = default( ti, 5)


mask1 = logic( DEdgeMask(source,0,255,0,255,"8 16 8 0 0 0 -8 -16 -8", divisor=4, Y=3, V=1, U=1)
 \          ,DEdgeMask(source,0,255,0,255,"8 0 -8 16 0 -16 8 0 -8", divisor=4, Y=3, V=1, U=1)
 \         ,"max")

amplimask1 = mask1.Levels(10, 0.800, 255, 0, 255).blur(1.0)

maskgrossa = mask1.blur(1.0).blur(1.0).binarize(upper = false, threshold = 1,y=3,u=1,v=1)

maskfinal = Overlay(amplimask1.Invert(), maskgrossa, mode="multiply").Levels(100, 3.0, 255, 0,255).FitY2UV

sourcefiltrada = source.Removegrain(mode=2).Removegrain(mode=2).Deen("a3d", radius, thrY, thrUV, ti)

resultado = source.maskedmerge(sourcefiltrada,maskfinal,y=3,u=3,v=3)

return resultado
}
Image

Report Bugs: zdarkdusk@hotmail.com

User avatar
Kariudo
Twilight prince
Joined: Fri Jul 15, 2005 11:08 pm
Status: 1924 bots banned and counting!
Location: Los taquitos unidos
Contact:
Org Profile

Post by Kariudo » Mon Feb 04, 2008 2:06 pm

you have some before/after shots you can show us?
how fast/slow does this run?
what is the purpose of this filter?
Image
Image

User avatar
zdark
Joined: Sun May 20, 2007 8:15 pm
Org Profile

Post by zdark » Mon Feb 04, 2008 2:35 pm

Slow.

Denoiser

Before:

Image

User avatar
Brad
Joined: Wed Dec 20, 2000 9:32 am
Location: Chicago, IL
Contact:
Org Profile

Post by Brad » Mon Feb 04, 2008 2:44 pm

Hmm.

Looks pretty good, but seems like it'd only be useful on noisier sources. Will keep it in mind. Thanks!
Image
Ask Brad an After Effects Question! - Forum - Site

User avatar
Zarxrax
Joined: Sun Apr 01, 2001 6:37 pm
Contact:
Org Profile

Post by Zarxrax » Mon Feb 04, 2008 4:57 pm

So its basically just deen and removegrain with some edge masking?

Locked

Return to “AviSynth Help”