/aWarpSharp2

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m
Line 1: Line 1:
'''Back to [[aWarpSharp2#Filters|aWarpSharp2.]]'''
+
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←'''
 +
--------------------------------------------------------
 +
<br>
 +
<br>
 
== Description ==
 
== Description ==
The same as '''aWarp(aSobel().aBlur())''' but a bit faster.  
+
The same as '''[[AWarpsharp2/aWarp|aWarp(]][[AWarpsharp2/aSobel|aSobel().]][[AWarpsharp2/aBlur|aBlur())]]''' but a bit faster.  
 +
<br>
 
<br>
 
<br>
 
==Syntax and Parameters ==
 
==Syntax and Parameters ==
:{{Template:FuncDef|aWarpSharp2(int "thresh", int "blur", int "type", int "depth", int "chroma")}}
+
:{{Template:FuncDef|aWarpSharp2 (''clip'', ''int'' "thresh", ''int'' "blur", ''int'' "type", ''int'' "depth", ''int'' "chroma")}}
 +
<br>
 +
::{{Par2|thresh|int|128}}
 +
:::Range: 0 to 255<br>
 +
::::Saturation limit for edge detection. Reduce for less aggressive sharpening.
 +
<br>
 +
::{{Par2|blur|int|2}}
 +
:::Range: 0 to 100<br>
 +
::::Number of blur passes over edge mask.<br>
 +
::::Less passes increase sharpening effect, but can produce major artifacts with high {{Template:FuncDef|depth}} and {{Template:FuncDef|thresh}} values.<br>
 +
::::You can use values higher than 100, but probably won't see any difference.<br>
 +
::::Chroma is processed with (blur+1)/2 passes.<br>
 +
:::<span style="color:red">'''Note:'''</span> Unless {{Template:FuncDef|blur}} is specifically set, it will default to 3 if {{Template:FuncDef|type}}=1.
 +
<br>
 +
::{{Par2|type|int|0}}
 +
::::Type of blur:
 +
:::::* 0 : radius 6 blur.
 +
:::::* 1 : radius 2 blur, requires around 8x more passes than {{Template:FuncDef|type}}=0 for the same effect (will be 2.5x slower), but will produce better quality.
 
<br>
 
<br>
:{{Par|thresh|int|128}}
+
::{{Par2|depth|int|16}}
::Range: 0 to 255<br>
+
:::Range: -128 to 127<br>
:::Saturation limit for edge detection. Reduce for less aggressive sharpening.
+
::::Strength of the final warping. Negative values result in warping in opposite direction.
 
<br>
 
<br>
:{{Par|blur|int|2 for type 0, 3 for type 1}}
+
::{{Par2|chroma|int|4}}
::Range: 0 to 100<br>
+
::::Processing mode for chroma planes (U and V):
:::Number of blur passes over edge mask.<br>
+
:::::* 0 : fill with zeroes
:::Less passes increase sharpening effect, but can produce major artifacts with high depth and thresh.<br>
+
:::::* 1 : don't care
:::You can use values higher than 100, but probably won't see any difference.<br>
+
:::::* 2 : copy
:::Chroma is processed with (blur+1)/2 passes.<br>
+
:::::* 3 : process
 +
:::::* 4 : guide by luma
 +
:::::* 5 : same as 3, but don't process luma
 +
:::::* 6 : same as 4, but don't process luma
 
<br>
 
<br>
:{{Par|type|int|0}}
+
== Examples ==
::Type of blur:
+
aWarpSharp2 with default values:
:::* 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.
+
aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=4)
 
<br>
 
<br>
:{{Par|depth|int|16}}
 
::Range: -128 to 127<br>
 
:::Strength of the final warping. Negative values result in warping in oppositedirection.
 
 
<br>
 
<br>
:{{Par|chroma|int|4}}
+
--------------------------------------------------------
::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
+

Revision as of 15:23, 29 January 2014

Back to aWarpSharp2




Description

The same as aWarp(aSobel().aBlur()) but a bit faster.

Syntax and Parameters

aWarpSharp2 (clip, int "thresh", int "blur", int "type", int "depth", int "chroma")


int  thresh = 128
Range: 0 to 255
Saturation limit for edge detection. Reduce for less aggressive sharpening.


int  blur = 2
Range: 0 to 100
Number of blur passes over edge mask.
Less passes increase sharpening effect, but can produce major artifacts with high depth and thresh values.
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 3 if type=1.


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


int  depth = 16
Range: -128 to 127
Strength of the final warping. Negative values result in warping in opposite direction.


int  chroma = 4
Processing mode for chroma planes (U and V):
  • 0 : fill with zeroes
  • 1 : don't care
  • 2 : copy
  • 3 : process
  • 4 : guide by luma
  • 5 : same as 3, but don't process luma
  • 6 : same as 4, but don't process luma


Examples

aWarpSharp2 with default values:

AviSource("Blah.avi")
aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=4)




Back to aWarpSharp2

Personal tools