Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
19th February 2007, 22:05 | #1 | Link | |
Registered User
Join Date: Aug 2006
Posts: 29
|
New sharpening plugin: Shock Filter
Hi everybody,
finally I managed to create my first AviSynth plugin. This is the abstract (from the filter docu file): Quote:
Because of this I don't have the heart to publish this filter in this forum. Instead it is published in the German doom9 forum. I encourage everyone outside the U.S. to go to the Shock filter thread there and download and try it. If you have some comments on this plugin (technically or legally), please don't hesitate and post it here - every comment is wellcome! Here are some problems I came across during the development:
I hope publishing in the German forum and discussing in the English forum does not violate any forum rules. I apologize otherwise Best regards, AMSS |
|
19th February 2007, 23:46 | #2 | Link |
Registered User
Join Date: Dec 2006
Location: Heidelberg (DE), Kraków (PL)
Posts: 519
|
Sh**, if I register to Gleitz, I won't have time left for my real life.
Anyway, thanks for the info, at least I am willing to check how it works in practice. cheers, HDBR77
__________________
"Only two things are infinite: the universe and human stupidity, and I'm not sure about the former."
|
20th February 2007, 11:06 | #5 | Link | |
Registered User
Join Date: Aug 2006
Posts: 29
|
Hi,
Quote:
for checking practicability. AMSS |
|
20th February 2007, 12:06 | #6 | Link |
interlace this!
Join Date: Jun 2003
Location: i'm in ur transfers, addin noise
Posts: 4,555
|
interesting results!
it's quite slow though i'll be sticking to limitedsharpen or seesaw for now i think. makes for some nice upsizing. this could be good for the anime buffs out there.
__________________
sucking the life out of your videos since 2004 |
21st February 2007, 23:51 | #7 | Link |
Registered User
Join Date: Oct 2003
Location: Germany
Posts: 377
|
For my taste this simple script work good on upsized real-life content:
Code:
i=last mm2=yv12lutxy(i.expand().blur(.8).expand(),i.inpand.blur(.8).inpand(),yexpr="x y - 2 *") clean=i.Shock(strength=.4, steps=3).Blur(1.15) maskedmerge(i,clean,mm2.expand.blur(1.58).expand .levels(32,1.0,strength,0,208,false)) |
22nd February 2007, 13:25 | #8 | Link |
Registered User
Join Date: Apr 2002
Location: Germany
Posts: 5,389
|
What exactly was that - did you just use Shock as the sharpener within LS?
If so, that is (should be) wasted effort: LS is cutting-away the overshoot of a sharpener. But Shock does not overshoot, so why put it into LS?
__________________
- We´re at the beginning of the end of mankind´s childhood - My little flickr gallery. (Yes indeed, I do have hobbies other than digital video!) |
22nd February 2007, 14:22 | #9 | Link | ||
Registered User
Join Date: Oct 2003
Location: Germany
Posts: 377
|
Quote:
Quote:
BTW: I just noticed the script above does not work as good as i thought... In general the Edges are to sharp for real content. And for Anime also i think. Maybe the add of an "antialiasing" option could give better results (you see in the script above i used blur). Last edited by krieger2005; 22nd February 2007 at 15:37. |
||
24th February 2007, 19:20 | #10 | Link |
Registered User
Join Date: May 2002
Posts: 384
|
Tried it on some anime content, and i agree with Krieger. It tends to make a mosaic out of the picture quite easy, an antialiasing option may be nice then. Effect does have soem similarities to certain linedarkening methods.
|
6th March 2007, 19:42 | #11 | Link | |
Registered User
Join Date: Aug 2006
Posts: 29
|
Hi,
I'm on learning SSE right now, but it might take some time before I get productive. The code is currently pure C and compiled for i386. Best speed gain is given by switching the pre-blur off (but then noise is enhanced as well). Quote:
The only way to avoid these staircases I see right now is applying Shock to an upsized image (what reduces speed terribly, of course): BilinearResize(2*Width,2*Height).Shock.ReduceBy2Anyway, thanks for trying - I hope there will be a new version soon. Regards, AMSS |
|
23rd February 2008, 16:04 | #13 | Link |
Registered User
Join Date: Aug 2006
Posts: 29
|
Update to 2008.02.23
Hi everybody,
I updated AVSShock to version 2008.02.23. Main change is the removal of AviSynth_C.dll. Thanks to Fizick, this file isn't necessary anymore (Plugin is still loaded with LoadCPlugin). Further (minor) changes are listed in the help file. The file is attached to the original post in the german doom9 forum. Please note the possible patent violation described in the original post of this thread. Have fun, AMSS |
3rd March 2008, 23:38 | #14 | Link |
Registered User
Join Date: Dec 2005
Posts: 250
|
In case you still need any, I have aplenty of XP with gcc+avisynth_c, I developed all my stuff with that. Works like a charm.
Here is an example I put together some time ago, commented out as best I could: http://forum.doom9.org/showthread.ph...740#post917740 -- Greets, I. |
11th March 2008, 08:18 | #15 | Link |
Registered User
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
|
Hi AMSS0815!
Main area for this plugin animation or computer graphics? I try for my analog capture and get very segregating image. May be exist parameter set for different type source parameter set? For my analog capture more satisfied results at step=1, and strength=0.25, increase strength give segregated image. with kind regards yup. |
21st March 2008, 13:17 | #16 | Link | |
Registered User
Join Date: Aug 2006
Posts: 29
|
Hi yup,
Quote:
Good luck! AMSS |
|
23rd March 2008, 16:03 | #18 | Link |
Registered User
Join Date: Feb 2003
Location: Russia, Moscow
Posts: 854
|
Hi mgh!
Read documentation. Output this sharpener is solution for partial differential equation. Product strength and step is time distance between initial data and solution, but if step increase also increase solution accuracy, and sharpener quality. yup. |
Thread Tools | Search this Thread |
Display Modes | |
|
|