BucketMedian

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Archived Downloads)
(External Links)
 
(5 intermediate revisions by one user not shown)
Line 1: Line 1:
[[Category:Plugins]]
+
{{FilterCat4|External_filters|Plugins|Adjustment_filters|Blurring}}
{{FilterCat|External_filters|Adjustment_filters|Blurring}}
+
 
 
{{Filter3
 
{{Filter3
 
| {{Author/Chikuzen}}
 
| {{Author/Chikuzen}}
 
| v0.3.1
 
| v0.3.1
|[http://www.mediafire.com/download/kx017u5twec2gt5/BucketMedian-0.3.1.zip BucketMedian-0.3.1.zip]
+
|[http://dl.dropboxusercontent.com/s/bczippngoqy6xbw/BucketMedian-0.3.1.7z BucketMedian-0.3.1.7z]
 
| Blurring  
 
| Blurring  
| See [[BucketMedian#License|license]]
+
| [http://en.wikipedia.org/wiki/ISC_license ISC]
 
|}}
 
|}}
 
<br>
 
<br>
 
== Description ==
 
== Description ==
:BucketMedian is an implementation of spatial median filter adapting bucket(counting) sort algorithm. Also induces BMBorderProc.avsi, a script to safely process broders with MedianBucket.
+
<tt>BucketMedian</tt> is an implementation of spatial median filter adapting bucket (counting) sort algorithm. Also induces <tt>BMBorderProc.avsi</tt>, a script to safely process borders with <tt>BucketMedian</tt>.
 +
<br>
 
<br>
 
<br>
 
 
== Requirements ==
 
== Requirements ==
:- [http://forum.doom9.org/showthread.php?t=168764 AviSynth 2.6.0 Alpha5] or greater
+
* AviSynth 2.5.8, or [http://forum.doom9.org/showthread.php?t=168764 2.6.0 Alpha5] or greater
:- Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]]
+
* Supported color formats: [[Y8]], [[YV12]], [[YV16]], [[YV24]], [[YV411]]
:: <span style="color:red">**</span> If you're using AviSynth 2.5.8, [[YV12]] will be the only colorspace supported.
+
:<span style="color:red">**</span> AviSynth 2.5.8 only supports [[YV12]]
 
<br>
 
<br>
:- [http://www.microsoft.com/en-us/download/details.aspx?id=8328 Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)]
+
* [http://www.microsoft.com/en-us/download/details.aspx?id=8328 Microsoft Visual C++ 2010 SP1 Redistributable Package (x86)]
 
<br>
 
<br>
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
:{{Template:FuncDef|BucketMedian (clip c, int "radius", int "thresh", int "min", int "max")}}
+
:{{Template:FuncDef|BucketMedian (clip, int "radius", int "thresh", int "min", int "max")}}
 
<br>
 
<br>
::{{Par2|c|clip| }}
+
::{{Par2| |clip| }}
:::Input clip; only planar formats are supported and only luma will be processed.
+
:::Input clip; only [[planar]] formats are supported and only luma will be processed.
 
<br>
 
<br>
 
::{{Par2|radius|int|1}}
 
::{{Par2|radius|int|1}}
Line 63: Line 63:
 
  v0.2.0      04/06/2012      - Add "thresh" parameter
 
  v0.2.0      04/06/2012      - Add "thresh" parameter
 
  v0.1.0      04/04/2012      - Initial release
 
  v0.1.0      04/04/2012      - Initial release
<br>
 
== License ==
 
<pre>
 
Permission to use, copy, modify, and/or distribute this software for any
 
purpose with or without fee is hereby granted, provided that the above
 
copyright notice and this permission notice appear in all copies.
 
 
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 
</pre>
 
 
<br>
 
<br>
  
Line 102: Line 87:
 
== External Links ==
 
== External Links ==
 
*[http://github.com/chikuzen/BucketMedian GitHub] - Source code repository.
 
*[http://github.com/chikuzen/BucketMedian GitHub] - Source code repository.
*[http://doom10.org/index.php?topic=2198.0 Doom10 Forum] - BucketMedian discussion.
+
*[https://web.archive.org/web/20140714102512/http://doom10.org/index.php?topic=2198.0 Doom10 Forum] - BucketMedian discussion.
 
*[http://csbarn.blogspot.com/2012/08/bucketmedian-3.html blogspot] - v0.3.0 blog post [Japanese].
 
*[http://csbarn.blogspot.com/2012/08/bucketmedian-3.html blogspot] - v0.3.0 blog post [Japanese].
 
*[http://csbarn.blogspot.com/2012/04/bucketmedian-2.html blogspot] - v0.2.0 blog post [Japanese].
 
*[http://csbarn.blogspot.com/2012/04/bucketmedian-2.html blogspot] - v0.2.0 blog post [Japanese].
 
*[http://csbarn.blogspot.com/2012/04/bucketmedian.html blogspot] - v0.1.0 blog post [Japanese].
 
*[http://csbarn.blogspot.com/2012/04/bucketmedian.html blogspot] - v0.1.0 blog post [Japanese].
<br>
 
 
<br>
 
<br>
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[External_filters#Blurring|External Filters]] &larr;'''
 
'''Back to [[External_filters#Blurring|External Filters]] &larr;'''

Latest revision as of 22:35, 2 October 2017


Abstract
Author Chikuzen
Version v0.3.1
Download BucketMedian-0.3.1.7z
Category Blurring
License ISC
Discussion


Contents

[edit] Description

BucketMedian is an implementation of spatial median filter adapting bucket (counting) sort algorithm. Also induces BMBorderProc.avsi, a script to safely process borders with BucketMedian.

[edit] Requirements

** AviSynth 2.5.8 only supports YV12



[edit] Syntax and Parameters

BucketMedian (clip, int "radius", int "thresh", int "min", int "max")


clip   =
Input clip; only planar formats are supported and only luma will be processed.


int  radius = 1
The radius of the neighborhood pixel referred to in order to calculate a median.
Higher values require heavy resources. Box size is (radius*2+1) * (radius*2+1).
Range: 1 to 255


int  thresh = 1
Threshold of which determines whether to change a pixel value into a median.
new = absolute(median - old) < thresh ? median : old
(new:filtered pixel value, old:source pixel value)
Range: 1 or higher


int  min = 0
Threshold of low pixel value.
If source's value is lower than this, the pixel is not processed.
Range: 0 to 254


int  max = 255
Threshold of high pixel value.
If source's value is higher than this, the pixel is not processed.
Range: 1 to 255


[edit] Examples

MedianBucket with default settings:

AviSource("blah.avi")
MedianBucket(radius=1, thresh=1, min=0, max=255)


[edit] Changelog

Version      Date            Changes
v0.3.0 08/21/2012 - Remove border processing and add BMBorderProc.avsi v0.2.0 04/06/2012 - Add "thresh" parameter v0.1.0 04/04/2012 - Initial release


[edit] Archived Downloads

Version Download Source code Mirror
v0.3.1 BucketMedian-0.3.1.7z BucketMedian-master.zip BucketMedian-0.3.1.zip
v0.2.0 BucketMedian-0.2.0.zip


[edit] External Links




Back to External Filters

Personal tools