VariableBlur/BinomialBlur
From Avisynth wiki
(Difference between revisions)
m (→Syntax and Parameters) |
m (minor formatting) |
||
Line 1: | Line 1: | ||
− | + | {{FilterCat4|External_filters|Plugin_functions|Adjustment_filters|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. 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 | |
− | + | * 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 |
− | + | ||
<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> | ||
----------------------------------------------- | ----------------------------------------------- | ||
'''Back to [[VariableBlur#Filters|VariableBlur]] ←''' | '''Back to [[VariableBlur#Filters|VariableBlur]] ←''' |
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
- Progressive input only
- Supported color formats: YV12
[edit] Syntax and Parameters
- BinomialBlur (clip, float "varY", float "varC", int "Y", int "U", int "V", bool "useMMX")
- clip =
- Input clip.
- 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
- float varY = 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.
- Controls which planes the filter is applied to:
- int Y = 3
- bool useMMX = true
- If true MMX instructions will be used. Default true for variance>1 else false.
- bool useMMX = true
[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 ←