Log in

View Full Version : Spray() filter (special blurring/logo removal)


WarpEnterprises
25th March 2003, 22:05
just another filter to share as my personal attempt to remove unwanted image parts or get strong blurring.

Basically it takes pixels from "nearby" and sprays them around, so you can spray pixel from outside the logo area randomly inside.

http://www.avisynth.org/~warpenterprises

sh0dan
25th March 2003, 22:13
Colorspace(s)?

AviSynth version?

AS
25th March 2003, 22:36
it's under AviSynth 2.0x column, so :)

Check the avs file and it's in rgb24

WarpEnterprises
26th March 2003, 08:28
check carefully ;) it's RGB32 (I need the alpha channel)

I'm not fully satisfied with the results because of too much random flickering it makes...

Blight
27th March 2003, 03:49
If you want this to work, you need to let people create pixel maps that let people specify which pixels move where, and then enable an option to slightly blur the result.

This will only work for MTV type logos where the logo-type is mostly a few lines. Any semi-translucent logo would require much smarter system. I know for a fact that something like this exists as unreleased code. Heck, I've written something like this myself, but the results were so/so.

WarpEnterprises
27th March 2003, 14:17
the slight blurring can be done with MaskedBlur
but you are right, it's crucial to find "from where to where" move the pixel. I'm still thinking of a way that will make this automatically (given a logo bitmap mask) and introduce only a SLIGHT randomness.

Have you links/thoughts ... about this theme?

The filters I have found so far are either to complicated or too simple.

Blight
28th March 2003, 02:47
The code I wrote was to try reversing the partial translucency on certain logos (like the fox logo). It worked by using a gradient luma-removal (brighter the area, less to remove). It lessened the logo, but didn't remove it completely. It also depended on the type of translucency used.

Some logos just do a white translucent overlay (background white = no logo visible). Others may do a full merge which may mean that if the background is white, the logo will darken the image and if the background is dark, the logo will brighten the image.

It really differs from station to station and writing a global solution that doesn't require a lot of user interaction may be impossible.