MedianBlur

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m
(small update)
Line 1: Line 1:
 +
[[Category:Plugins]]
 
{{FilterCat|External_filters|Adjustment_filters|Blurring}}
 
{{FilterCat|External_filters|Adjustment_filters|Blurring}}
{{Filter
+
{{Filter3
 
| [http://www.avisynth.nl/users/tsp/ tsp]
 
| [http://www.avisynth.nl/users/tsp/ tsp]
 
| 0.84
 
| 0.84
| [http://www.avisynth.nl/users/tsp/medianblur084.zip MedianBlur084]
+
| [http://www.avisynth.nl/users/tsp/medianblur084.zip medianblur084.zip]
 
| Blurring
 
| Blurring
|
 
* YV12
 
 
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
 
| [http://www.gnu.org/licenses/gpl-2.0.txt GPLv2]
|}}
+
| 6=[http://forum.doom9.org/showthread.php?t=84636 Doom9 Thread]
 +
}}
 
<br>
 
<br>
 
== Description ==
 
== Description ==
:A plugin with 5 different types of median blur filters.<br>
+
:A plugin with 5 different types of median blur filters.
==== Requirements ====
+
::* [[YV12]]
+
 
<br>
 
<br>
 
+
== Requirements ==
== Common Parameters ==
+
:- AviSynth 2.5.8 or later
{{Par|radiusy, u, v|int|2}}
+
:- [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only
:Specify the radius to use:
+
:- Supported color formats: [[YV12]]
 
+
::*If the supplied radius is between -1 and -255 the plane is set to -radius.  
+
::*If the the radius is 0 the plane is copied unaltered.  
+
::*If the radius is less than -255 the plane isn't processed at all.
+
::*Default is 2.  
+
<br>
+
{{Par|calcborder|bool|true}}
+
 
+
::*If true (default) the borders of the frame is filtered too.
+
::*If false then the border is copied from the source clip.<br>
+
 
<br>
 
<br>
  
 
== Filters ==
 
== Filters ==
{{PluginFilterTable}}
+
{{PluginFilterTable2}}
 
{{PluginFilterRow|MedianBlur|MedianBlur|
 
{{PluginFilterRow|MedianBlur|MedianBlur|
 
A spatial median blur filter with a variable radius.
 
A spatial median blur filter with a variable radius.
Line 56: Line 44:
 
|}
 
|}
 
<br>
 
<br>
== Examples ==
+
== Common Parameters ==
[[AviSource]]("Blah.avi")
+
{{Par2|radiusy|int|2}}
MedianBlur()
+
{{Par2|radiusu|int|2}}
 +
{{Par2|radiusv|int|2}}
 +
:Specify the radius to use:
 +
 
 +
::*If the supplied radius is between -1 and -255 the plane is set to -radius.  
 +
::*If the the radius is 0 the plane is copied unaltered.
 +
::*If the radius is less than -255 the plane isn't processed at all.
 +
::*Default is 2.
 
<br>
 
<br>
== Changelog ==
+
{{Par2|calcborder|bool|true}}
  
  version 0.84
+
::*If true (default) the borders of the frame is filtered too.
       - Added the option searchparam, bsfull, and spfull to ML3Dex and MedianBlurT.<br>
+
::*If false then the border is copied from the source clip.<br>
  version 0.83
+
<br>
       - Fixed a bug that caused a memory leak with motion compensation.  
+
== Changelog ==
        Now calls MVTools with named arguments. This should increase support of different versions of MVTools.<br>
+
Version      Date            Changes<br>
  version 0.82
+
0.84       03/19/2005       - Added the option searchparam, bsfull, and spfull to ML3Dex and MedianBlurT.<br>
      - Fixed a bug that caused an access violation in MedianBlurT and ML3Dex.<br>
+
0.83       12/05/2004       - Fixed a bug that caused a memory leak with motion compensation.  
  version 0.81
+
                              - Now calls MVTools with named arguments. This should increase support of different versions of MVTools.<br>
      - Bug fixes and added an option to show when MVTools detects a scene change.<br>
+
0.82                         - Fixed a bug that caused an access violation in MedianBlurT and ML3Dex.<br>
  version 0.8
+
0.81                         - Bug fixes and added an option to show when MVTools detects a scene change.<br>
      - Added ML3Dex a multilevel temporal median blur filter that can use MVTools for motion compensation.<br>
+
0.8                         - Added ML3Dex a multilevel temporal median blur filter that can use MVTools for motion compensation.<br>
  version 0.7
+
0.7                         - Added support for motion compensation in MedianBlurT using manao's MVTools.<br>
      - Added support for motion compensation in MedianBlurT using manao's MVTools.<br>
+
0.65                         - More bugs removed.
  version 0.65
+
                              - Added assembler optimization resulting in 30-60% speed increase for MedianBlurCW, MedianBlurT and MedianBlur(for radius >3)<br>
      - More bugs removed.
+
0.6                         - Fixed a couple of bugs and added integer SSE optimization for MedianBlur for radius below 4. This results in a 85-400% speed increase.<br>
        Added assembler optimization resulting in 30-60% speed increase for MedianBlurCW, MedianBlurT and MedianBlur(for radius >3)<br>
+
0.5                         - Added MedianBlurB and MedianBlurT.<br>
  version 0.6
+
0.4                         - Added MedianBlurCW, a centerweighted median blur.<br>
      - Fixed a couple of bugs and added integer SSE optimization for MedianBlur for radius below 4. This results in a 85-400% speed increase.<br>
+
0.31                         - bugfix. Should make the same output as TMedianBlur except for the borders.<br>
  version 0.5
+
0.3                         - Optimized the sort algorithm even more. Also added the ability to process the borders.<br>
      - Added MedianBlurB and MedianBlurT.<br>
+
0.2                         - Changed the sort algorithm to radix sort resulting in a great speed improvement especially for large radii.<br>
  version 0.4
+
                              - Also fixed a couple of bugs.<br>
      - Added MedianBlurCW, a centerweighted median blur.<br>
+
0.1         10/29/2004       - First version. Really slow and buggy.
  Version 0.31
+
                              - Used a modified bubble sort to find the median causing the filter to be extremely slow with large radii.
      - bugfix. Should make the same output as TMedianBlur except for the borders.<br>
+
  Version 0.3
+
      - Optimized the sort algorithm even more. Also added the ability to process the borders.<br>
+
  Version 0.2
+
      - Changed the sort algorithm to radix sort resulting in a great speed improvement especially for large radii.<br>
+
        Also fixed a couple of bugs.<br>
+
  Version 0.1
+
       - First version. Really slow and buggy.
+
        Used a modified bubble sort to find the median causing the filter to be extremely slow with large radii.
+
 
<br>
 
<br>
 
== External Links ==
 
== External Links ==
- [http://forum.doom9.org/showthread.php?t=84636 Doom9 Forum] - Discussion about MedianBlur.
+
- [http://forum.doom9.org/showthread.php?t=84636 Doom9 Forum] - MedianBlur discussion.
 +
<br>
 +
<br>
 +
<br>
 +
-----------------------------------------------
 +
'''Back to [[External_filters#Blurring|External Filters]] &larr;'''

Revision as of 00:30, 14 July 2014

Abstract
Author tsp
Version 0.84
Download medianblur084.zip
Category Blurring
License GPLv2
Discussion Doom9 Thread


Contents

Description

A plugin with 5 different types of median blur filters.


Requirements

- AviSynth 2.5.8 or later
- Progressive input only
- Supported color formats: YV12


Filters

Filter Description Color format
MedianBlur

A spatial median blur filter with a variable radius.

YV12
MedianBlurB

A binary median blur filter. It will take advantage of integer SSE if present.

YV12
MedianBlurCW

A centerweighted median blur filter with a variable radius.

YV12
MedianBlurT

A temporal-spatial median blur filter with optional motion compensation using Manaos MVTools.

YV12
ML3Dex

ML3Dex means Extended Multi Level 3Dimensional filtering.
This filter should cause less artifact compared to MedianBlurT while removing the same amount of noise.

YV12


Common Parameters

int  radiusy = 2
int  radiusu = 2
int  radiusv = 2

Specify the radius to use:
  • If the supplied radius is between -1 and -255 the plane is set to -radius.
  • If the the radius is 0 the plane is copied unaltered.
  • If the radius is less than -255 the plane isn't processed at all.
  • Default is 2.


bool  calcborder = true

  • If true (default) the borders of the frame is filtered too.
  • If false then the border is copied from the source clip.


Changelog

Version      Date            Changes
0.84 03/19/2005 - Added the option searchparam, bsfull, and spfull to ML3Dex and MedianBlurT.
0.83 12/05/2004 - Fixed a bug that caused a memory leak with motion compensation. - Now calls MVTools with named arguments. This should increase support of different versions of MVTools.
0.82 - Fixed a bug that caused an access violation in MedianBlurT and ML3Dex.
0.81 - Bug fixes and added an option to show when MVTools detects a scene change.
0.8 - Added ML3Dex a multilevel temporal median blur filter that can use MVTools for motion compensation.
0.7 - Added support for motion compensation in MedianBlurT using manao's MVTools.
0.65 - More bugs removed. - Added assembler optimization resulting in 30-60% speed increase for MedianBlurCW, MedianBlurT and MedianBlur(for radius >3)
0.6 - Fixed a couple of bugs and added integer SSE optimization for MedianBlur for radius below 4. This results in a 85-400% speed increase.
0.5 - Added MedianBlurB and MedianBlurT.
0.4 - Added MedianBlurCW, a centerweighted median blur.
0.31 - bugfix. Should make the same output as TMedianBlur except for the borders.
0.3 - Optimized the sort algorithm even more. Also added the ability to process the borders.
0.2 - Changed the sort algorithm to radix sort resulting in a great speed improvement especially for large radii.
- Also fixed a couple of bugs.
0.1 10/29/2004 - First version. Really slow and buggy. - Used a modified bubble sort to find the median causing the filter to be extremely slow with large radii.


External Links

- Doom9 Forum - MedianBlur discussion.



Back to External Filters

Personal tools