PDA

View Full Version : Jaan Kalda's optimized 2d cleaner


KF
11th March 2002, 10:26
How can I use this from AviSynth?:confused:

ARDA
11th March 2002, 11:08
To use it:
Include this script in your vdfilters.avs

######################################
# 2D Cleaner by Jim Casaburi #
# optk7 by Jaan Kalda #
#ThresholD (0-255) #
#Radi around source pixel #
#The values must satisfy #
#X and Y <=0 and (2x+1)(2y+1)<=121 #
#Either value, but not both may be 0 #
######################################
function VD_2DCleaneroptk7(clip clip, int "threshold", int "radiusx",int "radiusy", bool "interlaced")
{
LoadVirtualdubPlugin(VirtualDub_plugin_directory+"\2dcleanopt_k7.vdf", "_VD_2DCleaneroptk7")
return clip._VD_2DCleaneroptk7(default(interlaced,false)?1:0,threshold,radiusx,radiusy)
}
_________________

and this in your avs. file
VD_2DCleaneroptk7(10,2,2)

These are default values.

Arda

KF
11th March 2002, 14:17
Thank You.

bill_baroud
13th March 2002, 11:36
it is possible to do the same thing with all of the VD filters ?


it's perhaps a little faster to filter in avs and switch to fastrecompress in Virtual dub ?

Uli
13th March 2002, 11:45
1: It is possible with (nearly) any VDub filter ;)

2: You won't get a speed increase, coz VDub filters require a color space conversion from yuv2 to RGB to work properly. I don't know if the conversion is faster in avisynth or in VDub but i think it would be nearly the same. The speed increase with fast recompress is only possible without VDub filters, no matter if they are in Avisynth or in VDub.

greetz, Uli

bill_baroud
13th March 2002, 12:00
thanks for this quick response...

i have think to it, but after post my question =)