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.

 Doom9's Forum New smoothing plugin: Curvature Flow Approximation
 Register FAQ Calendar Search Today's Posts Mark Forums Read

6th March 2007, 21:08   #1  |  Link
AMSS0815
Registered User

Join Date: Aug 2006
Posts: 29
New smoothing plugin: Curvature Flow Approximation

Hi everybody,

recently I created a new smoothing plugin. This is the abstract from the help file:
Curvature flow equations smoothen images by smoothing their level lines. In contrast to linear smoothing filters, they do not only conserve sharp edges, but also have some remarkable properties like contrast invariance, or affine invariance. This filter resembles some recently discovered approximation schemes that (more or less) inherit many of those properties.
Common smoothing algorithms are often approximations of the heat equation applied to an image — in most cases realized by convolution with some smartly choosen kernel. This kind of smoothing removes (or "smears out") noise, but originally sharp edges become unlocatable. Moreover there are kinds of noise like impulse noise (also called Salt'n'Pepper noise) where the heat equation fails. Nonlinear filters like the well-known Median filter usually give better results. Sharp edges are untouched, but even nasty impuls noise can be removed satisfyingly. The Median filter is an approximation of the mean curvature flow — a mathematical object which smoothes the level lines of an image.
This filter collection provides several approximations of curvature flow filters, including the Median. These filters are realized by combining discrete erosions and dilations (operators that replace pixels with neighbor pixels that are darker or brighter, resp.) with several (nonlinear convolution) kernels, and resemble not only the mean curvature flow, but also the affine curvature flow, which gives usually even better results. The user may choose between a pure morphological approach, where no new color values are created, and an "almost-morphological" approach where the average value of erosions and dilations will be returned.
To put it in a nutshell, this plugin is a little collection of morphological smoothing filters. Morphological filters (especially the median) have been implemented quite often, so now I put myself in the list of morphological developers. I still hope this filter might have some nice applications, especially the erosion-/dilation-only-modes.

I recommend you to have Shubin's NoiseGenerator plugin (find it in WarpEnterprises' Filter Collection) installed if you want to try the Demo.avs script (a home made low-entropy noise generator will be used otherwise).
The filter is attached to this thread (as zip-file), I hope this works out...
Go ahead and try it - if you have some comments on this plugin, please don't hesitate and post them here - every comment is wellcome!

Regards,
AMSS

Edit: Added version 2008.02.23 as announced here. AMSS
Attached Files
 AVSCurveFlow-2007.03.06.zip (73.1 KB, 294 views) AVSCurveFlow-2008.02.23.zip (52.5 KB, 4238 views)

Last edited by AMSS0815; 23rd February 2008 at 15:49. Reason: added version 2008.02.23

 7th March 2007, 01:36 #2  |  Link Mug Funky interlace this!     Join Date: Jun 2003 Location: i'm in ur transfers, addin noise Posts: 4,555 gives a nice sort of look. little slow though i think it would be good for animation - it tended to strip a lot out of the live action i gave it. i'll have to try it on my home machine that has a wider variety of samples on it. __________________ sucking the life out of your videos since 2004
 7th March 2007, 06:35 #3  |  Link Pookie Registered User   Join Date: Apr 2005 Posts: 1,339 Wow, this thing is strong - makes Deen look like a sharpener Great demo script. Thanks.
 9th March 2007, 11:04 #4  |  Link DarkNite Almost Silent Member     Join Date: Jun 2002 Location: Purgatory Posts: 272 I'll have to try this on some older anime sources. In my first impression it's results look like TBilateral on anabolic steroids, or more like that NL-means look. __________________ Rethinking the "Why?" chromosome.
 18th March 2007, 14:25 #5  |  Link Scintilla Registered User     Join Date: Aug 2004 Location: New Jersey Posts: 25 Can make animé look pretty soft at times (like a combination of TBilateral and WarpSharp without the sharp), but it does clean up dot crawl. Could be useful in conjunction with a good sharpener.
 23rd February 2008, 15:48 #6  |  Link AMSS0815 Registered User   Join Date: Aug 2006 Posts: 29 Update to 2008.02.23 Hi everybody, I updated AVSCurveFlow 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 of this thread. Have fun, AMSS
24th February 2008, 04:15   #7  |  Link
vcmohan
Registered User

Join Date: Jul 2003
Location: India
Posts: 735
Quote:
 Originally Posted by AMSS0815 Hi everybody, Moreover there are kinds of noise like impulse noise (also called Salt'n'Pepper noise) ....... especially the erosion-/dilation-only-modes. Edit: Added version 2008.02.23 as announced here. AMSS
In the colorit plugin, morphology filters like desaltpepper, erosion and dilations are available.
__________________
mohan
my plugins are now hosted here

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home Announcements and Chat     General Discussion     News     Forum / Site Suggestions & Help General     Decrypting     Newbies     DVD2AVI / DGIndex     Audio encoding     Subtitles     Linux, Mac OS X, & Co Capturing and Editing Video     Avisynth Usage     Avisynth Development     VapourSynth     Capturing Video     DV     HDTV / DVB / TiVo     NLE - Non Linear Editing     VirtualDub, VDubMod & AviDemux     New and alternative a/v containers Video Encoding     (Auto) Gordian Knot     MPEG-4 ASP     MPEG-4 Encoder GUIs     MPEG-4 AVC / H.264     High Efficiency Video Coding (HEVC)     New and alternative video codecs     MPEG-2 Encoding (HD) DVD, Blu-ray & (S)VCD     One click suites for DVD backup and DVD creation     DVD & BD Rebuilder     (HD) DVD & Blu-ray authoring     Advanced authoring     IFO/VOB Editors     DVD burning Hardware & Software     Software players     Hardware players     PC Hard & Software Programming and Hacking     Development     Translations

All times are GMT +1. The time now is 21:39.

 Doom9.org - Archive - Top