View Single Post
Old 1st February 2012, 13:18   #43  |  Link
lisztfr9
Registered User
 
Join Date: Apr 2010
Posts: 175
Seesaw

Hi Didée,

This is a lot to learn as a scripting language (also i can't find some good tutorial...).

I tried this :

function sharpen2(clip)

{
z = 6 # z = zero point
p = 1.6 # p = power
str = 1.0 # str = strength
rad = 9.0 # radius for "gauss"

o = last
g = o.bicubicresize(round(o.width()/rad/4)*4,round(o.height()/rad/4)*4).bicubicresize(o.width(),o.height(),1,0)

mt_lutxy(o,g,"x x y - abs "+string(z)+" / 1 "+string(p)+" / ^ "+string(z)+" * "+string(str)+" * x y - x y - abs 0.001 + / * +",U=2,V=2)

interleave(o,last)
}


sharpen2()

========================


Error on width, - "invalid argument for function width", even if i add width = 5

Avisynth version = 2.58
therefor i choose an old version of mt_masktools2, because the last one needs 2.6

Thanks, L
lisztfr9 is offline   Reply With Quote