AWarpSharp2/aWarpSharp2

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
(Examples: add examples)
m (Examples: minor changes)
Line 48: Line 48:
 
  aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=4)
 
  aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=4)
 
<br>
 
<br>
Guide chroma with luma but only process chroma (luma channel will be copied from the input clip).
+
Guide chroma with luma bump map but only process chroma (luma channel will be copied from the input clip).
[[AviSource]]("Blah.avi")
+
 
  aWarpSharp2(thresh=128, blur=2, type=0, depth=16, '''chroma=6''')<br>
 
  aWarpSharp2(thresh=128, blur=2, type=0, depth=16, '''chroma=6''')<br>
  #identical to [[MergeChroma]](last, aWarpSharp2()) but faster and more memory efficient.  
+
  #Identical to [[MergeChroma]](last, aWarpSharp2()) but faster and more memory efficient.  
 
<br>
 
<br>
Only process the chroma channels and copy luma from the input clip.
+
Only process the chroma channels with independent bump map and copy luma from the input clip.
[[AviSource]]("Blah.avi")
+
 
  aWarpSharp2(thresh=128, blur=2, type=0, depth=16, '''chroma=5''')<br>
 
  aWarpSharp2(thresh=128, blur=2, type=0, depth=16, '''chroma=5''')<br>
  #identical to [[MergeChroma]](last, aWarpSharp2(chroma=3)) but faster and more memory efficient.  
+
  #Identical to [[MergeChroma]](last, aWarpSharp2(chroma=3)) but faster and more memory efficient.  
 
<br>
 
<br>
 
Only process the luma channel and copy chroma from the input clip.
 
Only process the luma channel and copy chroma from the input clip.
[[AviSource]]("Blah.avi")
 
 
  aWarpSharp2(thresh=128, blur=2, type=0, depth=16, '''chroma=2''')<br>
 
  aWarpSharp2(thresh=128, blur=2, type=0, depth=16, '''chroma=2''')<br>
  #identical to [[MergeLuma]](last, aWarpSharp2()) but faster and more memory efficient.  
+
  #Identical to [[MergeLuma]](last, aWarpSharp2()) but faster and more memory efficient.  
 
<br>
 
<br>
 
--------------------------------------------------------
 
--------------------------------------------------------
 
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] &larr;'''
 
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] &larr;'''

Revision as of 02:44, 17 February 2015

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")


clip   =
Input clip.


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


int  blur = 2
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.
Range: 0 to 100
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
Strength of the final warping. Negative values result in warping in opposite direction.
Range: -128 to 127


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)


Guide chroma with luma bump map but only process chroma (luma channel will be copied from the input clip).

aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=6)
#Identical to MergeChroma(last, aWarpSharp2()) but faster and more memory efficient.


Only process the chroma channels with independent bump map and copy luma from the input clip.

aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=5)
#Identical to MergeChroma(last, aWarpSharp2(chroma=3)) but faster and more memory efficient.


Only process the luma channel and copy chroma from the input clip.

aWarpSharp2(thresh=128, blur=2, type=0, depth=16, chroma=2)
#Identical to MergeLuma(last, aWarpSharp2()) but faster and more memory efficient.



Back to aWarpSharp2

Personal tools