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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 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
File Type: zip AVSCurveFlow-2007.03.06.zip (73.1 KB, 310 views)
File Type: zip AVSCurveFlow-2008.02.23.zip (52.5 KB, 7407 views)

Last edited by AMSS0815; 23rd February 2008 at 15:49. Reason: added version 2008.02.23
AMSS0815 is offline   Reply With Quote
Old 7th March 2007, 01:36   #2  |  Link
Mug Funky
interlace this!
 
Mug Funky's Avatar
 
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
Mug Funky is offline   Reply With Quote
Old 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.
Pookie is offline   Reply With Quote
Old 9th March 2007, 11:04   #4  |  Link
DarkNite
Almost Silent Member
 
DarkNite's Avatar
 
Join Date: Jun 2002
Location: Purgatory
Posts: 273
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.
DarkNite is offline   Reply With Quote
Old 18th March 2007, 14:25   #5  |  Link
Scintilla
Registered User
 
Scintilla's Avatar
 
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.
Scintilla is offline   Reply With Quote
Old 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
AMSS0815 is offline   Reply With Quote
Old 24th February 2008, 04:15   #7  |  Link
vcmohan
Registered User
 
Join Date: Jul 2003
Location: India
Posts: 890
Quote:
Originally Posted by AMSS0815 View Post
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
vcmohan is offline   Reply With Quote
Reply


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 Jump


All times are GMT +1. The time now is 06:05.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.