Log in

View Full Version : moderate_ee


MOmonster
13th November 2006, 10:01
Moderate_ee is an easy and fast script for weighting filter effects. It stands for moderate enhancer & eraser and can be used for blurring, sharping or for example as spatial repairfunction for a temporal filter. It`s the first release and at the moment there are only four profiles for this function, three for dehaloing and one for linedarken.
The profile settings aren´t really optimal, so if you like to test functions and have some useful ideas for better settings or other profiles (maybe combined with other filters) please post them. If they seems to be very useful to me I will add them.

moderate__ee (http://forum.gleitz.info/attachment.php?attachmentid=84376&d=1163679069)

Pookie
13th November 2006, 18:20
Looks good

http://fileserver1.jpghosting.com/images/tn_Untitled1_13bf2d54ea5f165bd5249badf2f3a8c5.png (http://fileserver1.jpghosting.com/images/Untitled1_13bf2d54ea5f165bd5249badf2f3a8c5.png)

MOmonster
16th November 2006, 13:15
@Pookie
Good that it works for you. But the blurring effect with the linedarken profile is not wanted. Also extra strange wasn´t additive. It`s because I uploaded the wrong file.
If you like the blurring effekt in this wrong linedarken profile you can do something like this:
moderate_ee("linedarken",Ydbs=0.8) to get the same effect.
The code is really simple, but can be often useful. Didee´s sharpen2 function use the same idea (simple weighting, but of course in a different way - Didee was faster:) ).
Next release will be better.


The right file is now linked.

Didée
16th November 2006, 13:49
BTW, regarding halo removal ... remember that old cheap method

merge( GaussianBlur(radius=bigger_than,needed), percent) ?

Lately, I found the following small modification pretty effective for cleaning a picture before getting a sharpening diff:

- make GaussianBlur
- apply x% of [effect minus 1 or 2]

It's not really a golden method to remove Halos. But it works very well when doing indirect sharpening ... i.e. the source has rather weak halos, were the halos as-they-are are not disturbing, but become too noticeable after sharpening.

When processing the input like above, the halos are gone (edges become weaker in amplitude, but stay 'sharp' in terms of 'steepyness'), and weak detail stays intact, too.
So, then you can do (e.g. using LimitedSharpen) like

flattened = source .Filter(like noted above)
sharpdiff = mt_makediff( flattened, flattened.LimitedSharpen() )
final = mt_makediff( original, sharpdiff )

et voila ... sharpening without halo amplification. ;)


Something like this I wanted to put into SeeSaw, perhaps even LimitedSharpen, for quite some time now, though didn't actually do it yet ...
Could fit well into moderate_ee, too.

MOmonster
16th November 2006, 14:00
@Didee
I looked into the code of many of your avisynth functions (but also to some other functions like HqDering and so on). They are full of nice ideas. If I just had a little bit more time I would realize much more things. This is another nice idea. I think I will write a new profile for this the next time.:)