Scharr
From Avisynth wiki
Abstract | |
---|---|
Author | zorr |
Version | 2019-01-19 |
Download | Script |
Category | Edge Detection |
License | |
Discussion | Doom9 Thread |
Contents |
Description
Edge detection using the Scharr operator.
Requirements
- AviSynth 2.6.0 [32-bit]
- AviSynth+ [32-bit or 64-bit]
- Supported color formats: Y8, YV12, YV16, YV24, YV411
Required Plugins
Syntax and Parameters
- scharr (clip c)
- clip =
- Input clip; only planar formats are supported. Chroma channels are not processed.
- clip =
Script
function scharr(clip c) { scharr_x = c.mt_edge("3 0 -3 10 0 -10 3 0 -3", thY1 = 0, thY2 = 255, y=3, u=1, v=1) scharr_y = c.mt_edge("3 10 3 0 0 0 -3 -10 -3", thY1 = 0, thY2 = 255, y=3, u=1, v=1) scharr = mt_lutxy(scharr_x, scharr_y, yexpr=mt_polish("((x*x)+(y*y))^0.5"), u=1, v=1) return scharr }
Examples
scharr:
AviSource("blah.avi") scharr ()
Changelog
Version Date Changes
01/19/2019 - Initial release
External Links
Back to External Filters ←