AWarpsharp2/aSobel
From Avisynth wiki
(Difference between revisions)
m (minor formatting) |
m (small documentation update) |
||
Line 1: | Line 1: | ||
{{FilterCat4|External_filters|Plugin_functions|Other_filters|Edge_detection}} | {{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> | ||
Line 15: | Line 10: | ||
<br> | <br> | ||
::{{Par2|thresh|int|128}} | ::{{Par2|thresh|int|128}} | ||
− | :::Saturation limit for edge detection. | + | :::Saturation limit for edge detection; no pixel in the edge mask will have a value greater than {{Template:FuncDef3|thresh}}. |
− | + | :::Range: 0 to 255 | |
− | :::Range: 0 to 255 | + | |
<br> | <br> | ||
::{{Par2|chroma|int|1}} | ::{{Par2|chroma|int|1}} | ||
− | :::Processing mode for chroma | + | :::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. | ||
<br> | <br> | ||
== Examples == | == Examples == |
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.
- 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 thresh = 128
- 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.
- Processing mode for the chroma channels (U and V):
- int chroma = 1
[edit] Examples
aSobel with default values:
AviSource("blah.avi") aSobel(thresh=128, chroma=1)
Back to aWarpSharp2 ←