AWarpsharp2/aSobel

From Avisynth wiki
(Difference between revisions)
Jump to: navigation, search
m (Examples)
m (small documentation update)
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←'''
+
{{FilterCat4|External_filters|Plugin_functions|Other_filters|Edge_detection}}
-------------------------------------------------
+
A [http://en.wikipedia.org/wiki/Sobel_operator Sobel edge detection] filter.
 
<br>
 
<br>
 
<br>
 
<br>
== Description ==
+
== [[Script variables|Syntax and Parameters]] ==
An edge dectecion filter.
+
:{{Template:FuncDef|aSobel (''clip'', ''int'' "thresh", ''int'' "chroma")}}
 
<br>
 
<br>
<br>
+
::{{Par2| |clip| }}
== Syntax and Parameters ==
+
:::Input clip.
:{{Template:FuncDef|aSobel (''clip'', ''int'' "thresh", ''int'' "chroma")}}
+
 
<br>
 
<br>
 
::{{Par2|thresh|int|128}}
 
::{{Par2|thresh|int|128}}
:::Range: 0 to 255<br>
+
:::Saturation limit for edge detection; no pixel in the edge mask will have a value greater than {{Template:FuncDef3|thresh}}.
::::Saturation limit for edge detection. Reduce for less aggressive sharpening.
+
:::Range: 0 to 255
 
<br>
 
<br>
 
::{{Par2|chroma|int|1}}
 
::{{Par2|chroma|int|1}}
::::Processing mode for chroma planes (U and V):
+
:::Processing mode for the chroma channels (U and V):
:::::* 0 : fill with zeroes
+
:::* 0 : fill with 0x80(128), output is grayscale.
:::::* 1 : don't care
+
:::* 1 : don't care - chroma will be trashed.
:::::* 2 : copy
+
:::* 2 : copy chroma channels from the input clip.
:::::* 3 : process
+
:::* 3 : process chroma; create an edge mask from each chroma channel and use those to warp each chroma channel individually.
:::::* 4 : guide by luma
+
:::* 4 : process chroma; use the edge mask from the luma to warp the chroma channels.
:::::* 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.
 +
:::Luma plane (Y) is always processed, except for mode 5 and 6 which simply copy the luma channel from the input clip.
 
<br>
 
<br>
 
== Examples ==
 
== Examples ==
aSobel with default values.
+
aSobel with default values:
  [[AVISource]]("blah.avi")
+
  [[AviSource]]("blah.avi")
 
  aSobel(thresh=128, chroma=1)
 
  aSobel(thresh=128, chroma=1)
<br>
 
 
<br>
 
<br>
 
------------------------------------------------
 
------------------------------------------------
 
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] &larr;'''
 
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] &larr;'''

Latest revision as of 15:21, 6 December 2015

A Sobel edge detection filter.

[edit] Syntax and Parameters

aSobel (clip, int "thresh", int "chroma")


clip   =
Input clip.


int  thresh = 128
Saturation limit for edge detection; no pixel in the edge mask will have a value greater than thresh.
Range: 0 to 255


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 channels from the input clip.
  • 3 : process chroma; create an edge mask from each chroma channel and use those to warp each chroma channel individually.
  • 4 : process chroma; use the edge mask from the luma to warp the chroma channels.
  • 5 : same as 3, but don't process luma.
  • 6 : same as 4, but don't process luma.
Luma plane (Y) is always processed, except for mode 5 and 6 which simply copy the luma channel from the input clip.


[edit] Examples

aSobel with default values:

AviSource("blah.avi")
aSobel(thresh=128, chroma=1)



Back to aWarpSharp2

Personal tools