Scharr

From Avisynth wiki
Jump to: navigation, search
Abstract
Author zorr
Version 2019-01-19
Download Script
Category Edge Detection
License
Discussion Doom9 Thread

Contents

[edit] Description

Edge detection using the Scharr operator.

[edit] Requirements

[edit] Required Plugins


[edit] Syntax and Parameters


scharr (clip c)


clip   =
Input clip; only planar formats are supported. Chroma channels are not processed.


[edit] 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
}


[edit] Examples

scharr:

AviSource("blah.avi")
scharr ()


[edit] Changelog

Version      Date            Changes
01/19/2019 - Initial release


[edit] External Links




Back to External Filters

Personal tools