AWarpsharp2/aWarp

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m
m (Update)
Line 1: Line 1:
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]]'''
+
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←'''
 +
--------------------------------------------------
 +
<br>
 +
<br>
 
== Description ==
 
== Description ==
A warp-sharpening filter.  
+
:aWarp is designed for a more custom warp-sharpening than [[/aWarpSharp2|aWarpSharp2]] allows.  
== Syntax and Parameters ==
+
:{{Template:FuncDef|aWarp(edge_mask_clip, int "depth", int "chroma")}}
+
 
<br>
 
<br>
::{{Par|edge_mask_clip| |}}
 
 
<br>
 
<br>
::{{Par|depth|int|3}}
+
== [[Script variables|Syntax and Parameters]] ==
 +
:{{Template:FuncDef|aWarp (''clip'', ''clip'', ''int'' "depth", ''int'' "chroma")}}
 +
<br>
 +
::{{Par2| |clip| |}}
 +
::::Input clip.
 +
<br>
 +
::{{Par2| |clip| |}}
 +
::::Edge mask clip; usually the input clip  processed by [[AWarpsharp2/aSobel|aSobel]] and followed by [[AWarpsharp2/aBlur|aBlur]].
 +
<br>
 +
::{{Par2|depth|int|3}}
 
:::Range: -128 to 127<br>
 
:::Range: -128 to 127<br>
 
::::Strength of the final warping. Negative values result in warping in opposite direction.
 
::::Strength of the final warping. Negative values result in warping in opposite direction.
 
<br>
 
<br>
::{{Par|chroma|int|1}}
+
::{{Par2|chroma|int|4}}
 
:::Processing mode for chroma planes (U and V):
 
:::Processing mode for chroma planes (U and V):
 
::::* 0 : fill with zeroes
 
::::* 0 : fill with zeroes
::::* 1 : don't care, default for aSobel and aBlur
+
::::* 1 : don't care
 
::::* 2 : copy
 
::::* 2 : copy
 
::::* 3 : process
 
::::* 3 : process
::::* 4 : guide by luma - default for aWarpSharp, aWarp, and aWarp4 only
+
::::* 4 : guide by luma
 
::::* 5 : same as 3, but don't process luma
 
::::* 5 : same as 3, but don't process luma
 
::::* 6 : same as 4, but don't process luma
 
::::* 6 : same as 4, but don't process luma
 +
<br>
 +
== Examples ==
 +
aWarp with ''all'' default settings is identical to [[/aWarpSharp2|aWarpSharp2()]]:
 +
input    = [[AviSource]]("Blah.avi")
 +
edge_mask = input.aSobel(thresh=128, chroma=1).aBlur(blur=3, type=1, chroma=1)<br>
 +
aWarp(input, edge_mask, depth=3, chroma=4)
 +
<br>
 +
The following examples are written differently but are identical to the one above.
 +
[[AviSource]]("Blah.avi")
 +
aWarp(aSobel().aBlur())
 +
 +
input    = [[AviSource]]("Blah.avi")
 +
edge_mask = input.aSobel().aBlur()<br>
 +
aWarp(input, edge_mask)
 +
<br>
 +
<br>
 +
--------------------------------------------------------
 +
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] &larr;'''

Revision as of 01:55, 10 March 2014

Back to aWarpSharp2




Description

aWarp is designed for a more custom warp-sharpening than aWarpSharp2 allows.



Syntax and Parameters

aWarp (clip, clip, int "depth", int "chroma")


clip   =
Input clip.


clip   =
Edge mask clip; usually the input clip processed by aSobel and followed by aBlur.


int  depth = 3
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

aWarp with all default settings is identical to aWarpSharp2():

input     = AviSource("Blah.avi")
edge_mask = input.aSobel(thresh=128, chroma=1).aBlur(blur=3, type=1, chroma=1)
aWarp(input, edge_mask, depth=3, chroma=4)


The following examples are written differently but are identical to the one above.

AviSource("Blah.avi")
aWarp(aSobel().aBlur())
input     = AviSource("Blah.avi")
edge_mask = input.aSobel().aBlur()
aWarp(input, edge_mask)




Back to aWarpSharp2

Personal tools