AWarpsharp2/aSobel
From Avisynth wiki
(Difference between revisions)
m (→Examples) |
m (small documentation update) |
||
(3 intermediate revisions by one user not shown) | |||
Line 1: | Line 1: | ||
− | + | {{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> | ||
− | == | + | == [[Script variables|Syntax and Parameters]] == |
− | + | :{{Template:FuncDef|aSobel (''clip'', ''int'' "thresh", ''int'' "chroma")}} | |
<br> | <br> | ||
− | + | ::{{Par2| |clip| }} | |
− | + | :::Input clip. | |
− | :{{ | + | |
<br> | <br> | ||
::{{Par2|thresh|int|128}} | ::{{Par2|thresh|int|128}} | ||
− | ::: | + | :::Saturation limit for edge detection; no pixel in the edge mask will have a value greater than {{Template:FuncDef3|thresh}}. |
− | :::: | + | :::Range: 0 to 255 |
<br> | <br> | ||
::{{Par2|chroma|int|1}} | ::{{Par2|chroma|int|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. | ||
<br> | <br> | ||
== Examples == | == Examples == | ||
− | aSobel with default values | + | aSobel with default values: |
− | [[ | + | [[AviSource]]("blah.avi") |
aSobel(thresh=128, chroma=1) | aSobel(thresh=128, chroma=1) | ||
− | |||
<br> | <br> | ||
------------------------------------------------ | ------------------------------------------------ | ||
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←''' | '''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←''' |
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 ←