VariableBlur/BinomialBlur: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
VariableBlur/BinomialBlur |
|||
| Line 13: | Line 13: | ||
== [[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| }} | ||
| Line 37: | Line 37: | ||
:::If true [[MMX]] instructions will be used. Default true for variance>1 else false. | :::If true [[MMX]] instructions will be used. Default true for variance>1 else false. | ||
<br> | <br> | ||
== Examples == | == Examples == | ||
BinomialBlur with default values: | BinomialBlur with default values: | ||
Revision as of 00:25, 14 July 2014
Back to VariableBlur ←
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).
Requirements
- - Progressive input only
- - Supported color formats: YV12
- 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
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 ←