digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Trying out LimitedSharpen() (http://www.digitalfaq.com/archives/avisynth/13762-avisynth-limitedsharpen.html)

incredible 08-27-2005 07:00 AM

Trying out LimitedSharpen()
 
We really should have a look closer on that incredible LimitedSharpen() function of Didée and try to figure out its many parameters as this blows my eyes almost out ! 8O

Screenshots where taken from the german Gleitz board where Dideé used on a bad capture a BlindDeHalo filter followed by LimitedSharpen().

The Source:

http://www.digitalfaq.com/archives/i...2005/08/36.jpg


The "little" difference after applying the above mentioned routines:

http://www.digitalfaq.com/archives/i...2005/08/37.jpg

Now for shure there have been "halos" at the edges of the source.
BUT my main interesting is as in case of good non-anamorph sources (like letterboxed 1.78:1 or 2.35:1 to 4:3 ones) we could size it up vertically back to a real anamorph state and apply LimitedSharpen() using individual best parameters.
You can clearly see IF there wouldn't have been halos in the source it still would have been quite unsharp, like if you would size UP. The real "pulling" of details where made by using LimitedSharpen.

So Gentlemen, ... someone gots a Letterboxed 16:9 Non-Anamorph 4:3 original DVD? So lets try out.
My trashy produced DVD of TITANIC for instance is in a non-anamorph state, means a 2.35:1 picture area with BIG Borders on Top/Bottom within 720x576.

So if sizing up the height by the anamorph factor h*1.333 or (h/0.75), cropping the height centered to 576 again and finally applying LimitedSharpen(9 (and maybe some other stuff) could be a now workout for "restoring" non-anamorph Widescreen sources out of trashy original DVDs back to the nice anamorph state.

The function LimitedSharpen() can be found here:
http://forum.doom9.org/showthread.ph...limitedsharpen

Shure its slow as complex edgemask building procedures are used, but I do think in some cases its really worth it.

A way to de-halo'ing before pulling details could be archived by this:
repair(last,last.blur(1), 1,1,1)
(also posted by didée)

(The Repair function out of the RemoveGrain Package is a VERY good filter when applying filters as they wont work "stupid" all over the whole frame ... said in stupid english words ;) )


Here's btw the full posting of Didée at the Gleitz Board, its in german, but the AVS lines and pic links are the ones which count imho.
http://forum.gleitz.info/showpost.ph...5&postcount=99

Zyphon 08-27-2005 07:52 AM

Thanks for the info Inc, that filter certainly looks impressive maybe it is worth looking into.

Unfortunately I am going to be extremely busy over the next couple of weeks so I cannot runs any tests myself but I would be interested to see the results of those who have run tests. :)

kwag 08-27-2005 09:48 AM

WOW 8O
Look at those edges, and the details :!:
I can clearly see the difference :)
halo, or is it really a chroma shift fix :?:
Gotta play with this filter :D
Thanks Andrej!,

-kwag

Prodater64 08-27-2005 12:13 PM

Re: Trying out LimitedSharpen()
 
Quote:

Originally Posted by incredible
So Gentlemen, ... someone gots a Letterboxed 16:9 Non-Anamorph 4:3 original DVD? So lets try out.
My trashy produced DVD of TITANIC for instance is in a non-anamorph state, means a 2.35:1 picture area with BIG Borders on Top/Bottom within 720x576.

So if sizing up the height by the anamorph factor h*1.333 or (h/0.75), cropping the height centered to 576 again and finally applying LimitedSharpen(9 (and maybe some other stuff) could be a now workout for "restoring" non-anamorph Widescreen sources out of trashy original DVDs back to the nice anamorph state.

What is the advantage of restoring to anamorph state?

incredible 08-27-2005 01:10 PM

@ Karl

Halos are lit-glows at edges and as you see the edgeglowing is not a chroma issue but light issue as the contrast in the light has been enhanced dramatically. Thats als btw what a sharpening filter does in its approach.


But as said, my purpose is not eliminating halos as I dont have such sources, but look btw. at that blur on the image above! Means if even there's no halo, the image would look even better if its just blurred like above.
Limited sharpen does use verrry nice procedures based on special edgemasks where even smallest details will be seen and enhanced by following routines by still avoiding overfiltering other areas.

@ Prodater

? The advantage is the same as you have with anamorphic in general, means more details in the height where finally on a 16:9 TV set only the width gets stretched = far better picture compared to if just zooming a 4:3 Letterboxed movie till it fits the 16:9 Window in its active movie pixels.

Prodater64 08-27-2005 01:29 PM

Quote:

Originally Posted by incredible
@ Prodater

? ...

Sorry, Im new really new in DVD and anamorphic so I still dont completely undertand some concepts. I try to understand but some things are hard to me related with language issues (maybe too technic language).
It was not a captious question.

incredible 08-27-2005 03:16 PM

I did'nt want to treat you like a fool!
Sorry if it looked like ;)

incredible 08-27-2005 04:03 PM

Well I just used Limitedsharpen on the non anamorph TITANIC Source.
No real tweaking, just a bit, means the optimum is not reached.

But for the first try its near to be sexy ;)

Seen from left to right ....
1. Original NonAnamorph
2. Scaled up in height to match anamorph and cropped so height matches 576 again
3. Also scaled up but LimitedSharpen used

http://www.digitalfaq.com/archives/error.gif

Dialhot 08-27-2005 05:13 PM

I'm sorry to tell that the result from this filter is like all other sharpener : ugly.

People will tell you that the third picture is more pleasant than the second but do compare it to the original source : the original picture is completly denatured.

Doing that is like duplicate a stereo audio stream to the rear chanel and tell "whaow, Dolby surround rocks !".

incredible 08-28-2005 01:51 AM

Did you read this line?
Quote:

No real tweaking, just a bit, means the optimum is not reached.
So maybe we shouldnt drop something which maybe isn't really tested yet.

Boulder 08-28-2005 06:48 AM

If you'd like to have some extra processing speed and happen to have a dual-CPU or multithread-capable (such as P4 HT or any dual-core processor) system, try tsp's MT.

http://forum.doom9.org/showthread.php?t=94996

Most Didée's functions just love it :wink:

Dialhot 08-29-2005 02:59 AM

Quote:

Originally Posted by incredible
Did you read this line?
Quote:

No real tweaking, just a bit, means the optimum is not reached.
So maybe we shouldnt drop something which maybe isn't really tested yet.

I know Inc. Tweaking won't change the nature of sharpening unfortunally. Isn't it ?

Either you sharpen too much, as above. Or you sharpen "just enougth" and... all will be lost by the next encoding/decoding/rendering on the screen. So what is the result ? You just lost time + bitrate (= quality loss) !

The only place where a sharpen should take place is on the final step. And that is where I use it (on the TV set or in the SPA setup when it has one, or sometimes with ffdshow when I link directly the PC to the TV).

Note : I'm note speaking about using the sharpener to restore something obviously bad like the first snapshots you posted in this thread. Eventually we can discuss also about to use a sharpener to reduce the lost from a previous filter. But sharpening with the goal to enhance details is just a bad idea IMHO.

incredible 08-29-2005 03:39 AM

LimitedSharpen does NOT sharpen the way we know, means just bumping up the contrast on edges. Its a different approach, wich is very well explained in the LS() Doom9 Thread.
That "subjective" detailenhancer also is included in ipp.avsi, also a function at doom9 where you can see Pics whats possible when using correct individual parameters and thats the thing to be figured out on individual sources.
http://forum.doom9.org/showthread.ph...035#post518035

Yep I know, where no detail is, there wont be more objective pixeldata after a function in effective, but we're talking about subjective recognision of a picture. But if you look in here related to details I think it speaks for itself.

Thats what I like on LS(), it doesnt "halo"'ing the final image as if a regular "sharpener" would do. All bases on correct setted parameters as said above.


Quote:

lost time + bitrate (= quality loss)
Related to loss of time I do completely agree, so someone has to decide on his own if its worth.

But related to Bitrate ... yes more Bitrate is needed.

Related to Quality loss ... not in general, cause someone can decide if his goal is to get two movies in good quality on one DVD5 or only one Movie in even better quality to one DVD5. I do prefer the one-movie-per-DVD5 as I do get good RITEK (incl. the good ID) Medias for about 2.95 per box incl. 5 Medias.

Dialhot 08-29-2005 03:44 AM

This thread is interresting.
I prefer this denomination : "DetailEnhancer" :)
Thank you Inc, I will look into it.

incredible 08-30-2005 06:16 PM

8O

I mean if you would bump up a stupid sharpener to pull out details like below a very ugly sideffect of glowing/halo'ing would occur, but even when using high values LS() wont halo the edges.

Parameters maybe set hard, but Picture looks clearer and even the pimples from Harrison Ford can be seen :lol: (yep thats his skin and NOT noise ;) )

http://www.digitalfaq.com/archives/i...2005/08/39.jpg

http://www.digitalfaq.com/archives/i...2005/08/40.jpg


Look at the ground where R2 and C3po are walking:

http://www.digitalfaq.com/archives/i...2005/08/41.jpg


Look at the Wall above C3pos arm:

http://www.digitalfaq.com/archives/i...2005/08/42.jpg


I think that function is really worth a try :)

Thanks to ImageShack for Free Image Hosting

Dialhot 08-31-2005 03:16 AM

Are these picture that you did yourself ?
I find the results a little "too much" (espacially the last one). Just like if someone tried to convince people by any means necessary... cheating including.

incredible 08-31-2005 03:54 AM

Yep, these I did by myself. The difference to the "Titanic" approach now was that I took a bit more time to tweak ;)
As also said above the settings are set very hard, but I wanted to see whats possible without getting typical common shaprden-artifacts.

I think lowering the params is no problem but its really incredible how that function pulls out details (like you can see on C3pos chest on the last picture or the earth wall left side to him).

You can pull out more details as seen above without too much mega sharpen if using higher SS_x/y values. SS stands for supersampling, means the source will be sized up to the factor x or y where the contrast-engine does "catch" better the little luma differencies which results in more details when internally downsizing finally.

partial Supersampling-code of LS()
Code:

ss_x != 1.0 || ss_y != 1.0 ? last.lanczosresize(xxs,yys) : last

Quote:

Just like if someone tried to convince people by any means necessary... cheating including.
?

Dialhot 08-31-2005 04:04 AM

Quote:

Originally Posted by incredible
I think lowering the params is no problem but its really incredible how that function pulls out details (like you can see on C3pos chest on the last picture or the earth wall left side to him).

You did not understand me. I did not tell you pushed the params too far. I was asking if there is a possibility that "someone" took a really good image, use a "blur" filter on it, switch the "before" and "after" labels, and then post a thread "somewhere" saying "look how my wonderfull filter acts".
I saw that so many times on the forums ! That is what I call "try to convince by any means necessary".

Note: how much time to encode, let say, one minute of video ?

incredible 08-31-2005 04:28 AM

Quote:

I was asking if there is a possibility that "someone" took a really good image, use a "blur" filter on it, switch the "before" and "after" labels, and then post a thread "somewhere" saying "look how my wonderfull filter acts".
As I answered that these Pics where made by a workout of mine ...
a) These filtered/orig pics are from an original DVDsource of min, so the filter acts "trueful"
b) If someone unknown jumps out of the ashes like phoenix yelling "Mine does the impossible" ... for shure I'm in doubt. But Didée is known for very excellent functions (if used correctly!) ... like Restore24(), YLevels() etc. So I do trust him and I see what others (correct using users) reached using his filters.

The encoding time - well .... try out, it rises, my last workout needed 100-200% more than a regular encode.

Boulder 08-31-2005 05:08 AM

I recommend kassandro's AVSTimer plugin for testing different filters' performance.


All times are GMT -5. The time now is 10:20 PM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.