AWarpsharp2/aBlur

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(small documentation update)
 
(16 intermediate revisions by one user not shown)
Line 1: Line 1:
== aBlur ==
+
{{FilterCat4|External_filters|Plugin_functions|Adjustment_filters|Blurring}}
 +
A blurring filter that is usually used to blur the edge mask (the output of [[AWarpsharp2/aSobel|aSobel]]).
 +
<br>
 +
<br>
 +
== [[Script variables|Syntax and Parameters]] ==
 +
:{{Template:FuncDef|aBlur (''clip'', ''int'' "blur", ''int'' "type", ''int'' "chroma")}}
 +
<br>
 +
::{{Par2| |clip| }}
 +
:::Input clip.
 +
<br>
 +
::{{Par2|blur|int|3}}
  
{{Template:FuncDef|aBlur(int "blur", int "type", int "chroma")}}
+
:::Range: 0 to 100<br>
  
== Parameters ==
+
:::Number of blur passes over edge mask. Higher values increase blurring strength. Less passes increase sharpening effect, but can produce major artifacts with high {{Template:FuncDef3|depth}} and {{Template:FuncDef3|thresh}}.
 +
:::You can use values higher than 100, but probably won't see any difference. Chroma is processed with <code>({{Template:FuncDef|blur}}+1)/2</code> passes.<br>
  
{{Par|blur|int|2 for type 0, 3 for type 1}}
+
:::<span style="color:red">'''Note:'''</span> Unless {{Template:FuncDef3|blur}} is specifically set, it will default to 2 if <code>{{Template:FuncDef3|type}}=0</code>.
:range: 0 to 100<br>
+
<br>
::Number of blur passes over edge mask.<br>
+
::{{Par2|type|int|1}}
::Less passes increase sharpening effect, but can produce major artifacts with high depth and thresh.<br>
+
:::Type of blur:
::You can use values higher than 100, but probably won't see any difference.<br>
+
:::* 0 : radius 6 blur (some kind of 13x13 average).
::Chroma is processed with (blur+1)/2 passes.<br>
+
:::* 1 : radius 2 blur (some kind of 5x5 average), requires around 8x more passes than <code>{{Template:FuncDef3|type}}=0</code> for the same effect (will be 2.5x slower), but will produce better quality.
 +
<br>
 +
::{{Par2|chroma|int|1}}
 +
:::Processing mode for the chroma channels (U and V):
 +
:::* 0 : fill with 0x80(128), output is grayscale.
 +
:::* 1 : don't care - chroma will be trashed.
 +
:::* 2 : copy chroma planes from the input clip.
 +
:::* 3 : process chroma.
 +
:::* 4 : process chroma.
 +
:::* 5 : process chroma but copy the luma plane from the input clip.
 +
:::* 6 : process chroma but copy the luma plane from the input clip.
 +
:::Luma plane (Y) is always processed, except for mode 5 and 6.
 
<br>
 
<br>
{{Par|type|int|1}}
+
== Examples ==
::Type of blur:
+
aBlur with default settings:
::* 0 : radius 6 blur.
+
[[AviSource]]("Blah.avi")
::* 1 : radius 2 blur, requires around 8x more passes than type 0 for the same effect (will be just 2.5x slower), but produce better quality.
+
aBlur(blur=3, type=1, chroma=1)
 
<br>
 
<br>
{{Par|chroma|int|}}
+
--------------------------------------------------------
::Processing mode for chroma planes (U and V):
+
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] &larr;'''
::* 0 : fill with zeroes
+
::* 1 : don't care, default for aSobel and aBlur
+
::* 2 : copy
+
::* 3 : process
+
::* 4 : guide by luma - default for aWarpSharp, aWarp, and aWarp4 only
+
::* 5 : same as 3, but don't process luma
+
::* 6 : same as 4, but don't process luma
+

Latest revision as of 23:55, 5 December 2015

A blurring filter that is usually used to blur the edge mask (the output of aSobel).

[edit] Syntax and Parameters

aBlur (clip, int "blur", int "type", int "chroma")


clip   =
Input clip.


int  blur = 3
Range: 0 to 100
Number of blur passes over edge mask. Higher values increase blurring strength. Less passes increase sharpening effect, but can produce major artifacts with high depth and thresh.
You can use values higher than 100, but probably won't see any difference. Chroma is processed with (blur+1)/2 passes.
Note: Unless blur is specifically set, it will default to 2 if type=0.


int  type = 1
Type of blur:
  • 0 : radius 6 blur (some kind of 13x13 average).
  • 1 : radius 2 blur (some kind of 5x5 average), requires around 8x more passes than type=0 for the same effect (will be 2.5x slower), but will produce better quality.


int  chroma = 1
Processing mode for the chroma channels (U and V):
  • 0 : fill with 0x80(128), output is grayscale.
  • 1 : don't care - chroma will be trashed.
  • 2 : copy chroma planes from the input clip.
  • 3 : process chroma.
  • 4 : process chroma.
  • 5 : process chroma but copy the luma plane from the input clip.
  • 6 : process chroma but copy the luma plane from the input clip.
Luma plane (Y) is always processed, except for mode 5 and 6.


[edit] Examples

aBlur with default settings:

AviSource("Blah.avi")
aBlur(blur=3, type=1, chroma=1)



Back to aWarpSharp2

Personal tools