AWarpsharp2/aSobel: Difference between revisions
From Avisynth wiki
Jump to navigationJump to search
Created page with "== aSobel== {{Template:FuncDef|aSobel(int "thresh", int "chroma")}}" |
m small documentation update |
||
| (8 intermediate revisions by the same 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. | |||
{{Template:FuncDef|aSobel(int "thresh", int "chroma")}} | <br> | ||
<br> | |||
== [[Script variables|Syntax and Parameters]] == | |||
:{{Template:FuncDef|aSobel (''clip'', ''int'' "thresh", ''int'' "chroma")}} | |||
<br> | |||
::{{Par2| |clip| }} | |||
:::Input clip. | |||
<br> | |||
::{{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> | |||
::{{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> | |||
== Examples == | |||
aSobel with default values: | |||
[[AviSource]]("blah.avi") | |||
aSobel(thresh=128, chroma=1) | |||
<br> | |||
------------------------------------------------ | |||
'''Back to [[aWarpSharp2#Filters|aWarpSharp2]] ←''' | |||
Latest revision as of 15:21, 6 December 2015
A Sobel edge detection filter.
- 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
Examples
aSobel with default values:
AviSource("blah.avi") aSobel(thresh=128, chroma=1)
Back to aWarpSharp2 ←