Edge Detect

Draws the edges in a texture as bright lines on a black background.

Outputs

NameTypeDescription
OutputTextureThe edges, white on black.

Inputs

NameTypeDescription
InputTextureThe texture to find edges in.

Parameters

NameTypeDescription
ThresholdFloatHow strong an edge has to be before it shows. 0 shows every edge, higher hides the faint ones.
StrengthFloatHow bright the edges are drawn.
Sample DistanceFloatHow far apart the compared pixels are, in pixels. 1 gives thin lines, more gives thicker ones.
FormatadvancedEnumThe pixel format of the output. Auto is one channel of gray at the precision of the input.

The Edge Detect operator finds where the brightness of a texture changes quickly and draws those places as bright lines on black. The result looks like a line drawing of the input.

Edges are found on brightness alone, so a change of color at the same brightness is not an edge. On a noisy picture, blur the input first or raise the threshold for cleaner lines.

See also Blur.

Keywords: outline, sobel, contour, lines, sketch, find edges