Video Stylize Canny

Detects the edges of the video with the Canny method and draws them as thin, continuous lines. For line art, tracing, neon outlines, or a clean mask of the contours.

Example: the bridge at the default settings; then the street at night with color mode source on background and thickness 1.

The luma is blurred (blur), its Sobel gradient is thinned to the pixels where it is the strongest across the edge, and a double threshold keeps the strong edges and the weak edges joined to them. Unlike Video Stylize Edge, which draws the strength of the gradient, it gives lines one pixel wide without gaps along an edge: at the default settings about 4.7 % of the pixels of the bridge of the first example, 2.3 % of the street at night. A flat image has no edge: black with colors, the source unchanged with foreground on source. About 4 ms per frame at 1920 x 1080 and 13.5 ms at 3840 x 2160.

Settings

bypass

Bypasses the module processing when activated (ON).

  • OFF (0): Module processes normally
  • ON (1): Input passes directly to output without processing

video in

Video input flow(s).

video out

Video output flow(s).

process time

Total time used for the calculation of the module.

blur

Standard deviation of the Gaussian blur applied to the luma before the edges are searched, from 0 to 5 pixels (default 1.4). 0 means no blur: many more short lines from the noise and the fine texture. Larger values keep only the contours of the larger shapes: on the bridge of the first example (1920 x 1080) about 8.5 % of the pixels are on a line at 0, 4.7 % at 1.4, 2.1 % at 3, 1.2 % at 4 and 0.66 % at 5. The thresholds follow the blur, so an edge of a given contrast stays an edge whatever the blur. A blur of 5 adds about 4 ms per frame at 3840 x 2160.

low threshold

Threshold of the weak edges, from 0 to 1 (default 0.1): a weak edge is kept only where it joins a strong one, which closes the gaps along the contours. Both thresholds are fractions of the gradient of a sharp step from black to white after the blur, so they select the edges by their contrast.

high threshold

Threshold of the strong edges, from 0 to 1 (default 0.3): the edges above it are always kept, with the weak edges joined to them. When low threshold is above high threshold, the two are swapped. With both thresholds at 1 a natural image gives no line; with both at 0 every local maximum of the gradient becomes a line, a dense web that takes about 9 ms per frame at 1920 x 1080 and 34 ms at 3840 x 2160.

thickness

Widens the lines, from 0 to 10 pixels on each side (default 0): a line becomes 2 x thickness + 1 pixels wide (3 gives 7 pixels, 10 gives 21). 0 keeps the lines one pixel wide. A thickness of 3 adds about 2 ms per frame at 3840 x 2160.

color mode

How the lines are drawn (colors by default).

  • colors: foreground on the lines, background elsewhere: two colors only.
  • source on background: the pixels of the source on the lines, background elsewhere: lines in the colors of the image.
  • foreground on source: foreground on the lines, over the untouched source.

foreground

Color of the lines with colors and foreground on source (white by default). A transparent color gives a frame with alpha.

background

Color away from the lines with colors and source on background (black by default). A transparent background ($00000000) gives a frame with alpha, transparent away from the lines, to lay the lines over another video.

Common Settings

info

show manual

Button. Opens the manual page of the selected object (or of its parent module for a control) in the web browser. If no page exists for this object, an error is traced in the trace panel.

For more details about information/help creation, see create-help-file.

description

Free multi-line text attached to the module, saved with the patch. When it is not empty, it is shown as the hint of the module (mouse over the module header in the patch) in place of the default module hint, even when the module hints are disabled.

ID's

visible only in god mode, see setup-panel-tab-expert.

unique ID

Read-only, not saved. Current private numeric ID of the object, used internally to identify it (for example as the target of a bind ID).

preset ID

Read-only, not saved. Private ID used to store and recall the values of this control in presets.

recreate ID

Button. Generates a new unique ID, original ID and preset ID for the object. Use it if you experience difficulties in Polyphonic mode or if two objects share the same ID. Preset values and binds referring to the old IDs are lost.

Object Remote Address

absolute

Read-only, not saved. Absolute address of the object in the Usine objects tree, built from the workspace root. This is the address to use to reach the object from scripts, the objects panel or remote messages. Only shown for objects that are registered in the objects list. See objects-address.

local

Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.

user addr

Free user-defined address for the object (empty by default). When set, the object is also registered in the objects tree under this name, so it can be reached independently of its position in the workspace (the value is also reported in the mouse-over and mouse-down chunks). Changing it rebuilds the objects list. Only available on objects that support a user address. See objects-address.

See also

version 7.0.250921

Edit All Pages