Log in

View Full Version : AVS Filter - Find Edge?


TheCreamCrackerBoy
15th July 2004, 22:17
Hello to all!!!

Searching all the web, I've found a very interesting filter for VirtualDub: Image processing plugin for VirtualDub, at http://pcvideo.tripod.com/download.htm. This one can suport a lot of effects: Adjust Saturation, Blur, (...). Find Edge.

This Find Edge effect makes the picture looks hand-drawn, just like a draft. This effect is amazing!

Now my question is:

Has anybody developed an AviSynth filter that does this same effect?

My best regards,

The Cream Cracker Boy.

Wilbert
26th July 2004, 14:59
Could you post a screenshot?

Didée
26th July 2004, 15:46
I could swear to have read the same post somewhere else ...

If I get this right, what you want is an inversed edge detector.

Basically like this:
function sketch( clip clp, int "brightness")
{
div = default(brightness, 5)
invedge = logic( clp.DEdgemask(0,255,0,255,"5 0 -5 10 0 -10 5 0 -5",divisor=div,Y=3,U=-127,V=-127,useMMX=true)
\ ,clp.DEdgemask(0,255,0,255,"5 10 5 0 0 0 -5 -10 -5",divisor=div,Y=3,U=-127,V=-127,useMMX=true)
\ ,"max") .levels(3,2.0,192,0,255,false).invert()
return invedge
}

This is just basic - one could fiddle a lot to adapt it to whatever.

Above function needs at least Masktools v1.4.16 - v1.5.1a is recommended ;)


- Didée

TheCreamCrackerBoy
29th July 2004, 02:29
Hello, Mr. Didée,

Are these instructions above some script for AVS, or am I mistaken?

Sds,

TheCreamCrackerBoy.