VariableBlur/BinomialBlur

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Syntax and Parameters)
m (minor formatting)
 
Line 1: Line 1:
[[Category:Plugin_Filters]]
+
{{FilterCat4|External_filters|Plugin_functions|Adjustment_filters|Blurring}}
[[Category:Blurring]]
+
 
'''Back to [[VariableBlur#Filters|VariableBlur]] ←'''
 
'''Back to [[VariableBlur#Filters|VariableBlur]] ←'''
 
== Description ==
 
== Description ==
:BinomialBlur works by repeating a 5x5 or 3x3 kernel based on pascals triangle multiple times to blur the image.  
+
BinomialBlur works by repeating a 5x5 or 3x3 kernel based on pascals triangle multiple times to blur the image. With a variance above 1 the result is very close to a true Gaussian blur and much faster (for variance below ~30).  
:With a variance above 1 the result is very close to a true Gaussian blur and much faster (for variance below ~30).  
+
<br>
 
<br>
 
<br>
 
 
== Requirements ==
 
== Requirements ==
:- [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only  
+
* [[FAQ_different_types_content#How_do_I_recognize_progressive.2C_interlaced.2C_telecined.2C_hybrid_and_blended_content.3F|Progressive]] input only  
:- Supported color formats: [[YV12]]
+
* Supported color formats: [[YV12]]
 
<br>
 
<br>
 
 
== [[Script variables|Syntax and Parameters]] ==
 
== [[Script variables|Syntax and Parameters]] ==
 
:{{Template:FuncDef|BinomialBlur (clip, float "varY", float "varC", int "Y", int "U", int "V", bool "useMMX")}}
 
:{{Template:FuncDef|BinomialBlur (clip, float "varY", float "varC", int "Y", int "U", int "V", bool "useMMX")}}
 
<br>
 
<br>
 
::{{Par2||clip| }}
 
::{{Par2||clip| }}
:::Input clip
+
:::Input clip.
 
<br>
 
<br>
 
::{{Par2|varY|float|1.5}}
 
::{{Par2|varY|float|1.5}}
 
::{{Par2|varC|float|1.5}}
 
::{{Par2|varC|float|1.5}}
 
:::Variance to use; {{Template:FuncDef|<tt>varY</tt>}} for luma, {{Template:FuncDef|<tt>varC</tt>}} for chroma (U/V).
 
:::Variance to use; {{Template:FuncDef|<tt>varY</tt>}} for luma, {{Template:FuncDef|<tt>varC</tt>}} for chroma (U/V).
:::Remember variance=sd^2. The variance is rounded down to the nearest half integer(0.5,1.0,1.5 etc).  
+
:::Remember variance=sd^2. The variance is rounded down to the nearest half integer(0.5,1.0,1.5 etc). Radius 1 in version <=0.2 is equal to variance 0.5. Default 1.5
:::Radius 1 in version <=0.2 is equal to variance 0.5. Default 1.5
+
  
 
<br>
 
<br>
Line 42: Line 38:
 
  [[AviSource]]("Blah.avi")
 
  [[AviSource]]("Blah.avi")
 
  BinomialBlur(varY=1.5, varC=1.5, Y=3, U=2, V=2, useMMX=true)
 
  BinomialBlur(varY=1.5, varC=1.5, Y=3, U=2, V=2, useMMX=true)
 
<br>
 
 
<br>
 
<br>
 
<br>
 
<br>
 
-----------------------------------------------
 
-----------------------------------------------
 
'''Back to [[VariableBlur#Filters|VariableBlur]] &larr;'''
 
'''Back to [[VariableBlur#Filters|VariableBlur]] &larr;'''

Latest revision as of 11:59, 21 September 2014

Back to VariableBlur

Contents

[edit] Description

BinomialBlur works by repeating a 5x5 or 3x3 kernel based on pascals triangle multiple times to blur the image. With a variance above 1 the result is very close to a true Gaussian blur and much faster (for variance below ~30).

[edit] Requirements


[edit] Syntax and Parameters

BinomialBlur (clip, float "varY", float "varC", int "Y", int "U", int "V", bool "useMMX")


clip   =
Input clip.


float  varY = 1.5
float  varC = 1.5
Variance to use; varY for luma, varC for chroma (U/V).
Remember variance=sd^2. The variance is rounded down to the nearest half integer(0.5,1.0,1.5 etc). Radius 1 in version <=0.2 is equal to variance 0.5. Default 1.5


int  Y = 3
int  U = 2
int  V = 2
Controls which planes the filter is applied to:
  • 3 : corresponding plane will be filtered
  • 2 : corresponding plane will be copied from the source
  • 1 : corresponding plane will be ignored
  • from 0 to -255 : corresponding plane will be assigned the absolute value.


bool  useMMX = true
If true MMX instructions will be used. Default true for variance>1 else false.


[edit] Examples

BinomialBlur with default values:

AviSource("Blah.avi")
BinomialBlur(varY=1.5, varC=1.5, Y=3, U=2, V=2, useMMX=true)




Back to VariableBlur

Personal tools