Traces the outlines of the bright (or dark) regions of the video as polygons, the largest first, and outputs their points, areas and centers. Use it to redraw a silhouette with Video Draw Path, to cut a picture with Video Mapping Path Mask Outside, or to move objects along a shape seen by a camera.
A snowboarder against the sky, invert ON, threshold 0.45, view black.
A pattern in mode outer and holes, threshold 0.25, max contours 64, view black: outer borders in green, holes in magenta.
The points of all the contours follow one another in x and y: starts and sizes give where each contour begins and how many points it has. Each contour is closed, its last point joining its first. largest x and largest y hold the largest contour alone, ready for a path. A frame of a detailed picture costs about 4 ms at 1920 x 1080 and 9.5 ms at 3840 x 2160.
Bypasses the module processing when activated (ON).
Video input flow(s).
Video output flow(s).
Total time used for the calculation of the module.
Channel of the picture compared with threshold (default luma).
Level of the source from which a pixel is inside a region, from 0 to 1 (default 0.5).
When ON, the outlines of the dark regions, below threshold, are traced instead. When the whole frame is one region, its outline is the border of the frame.
Resolution at which the outlines are traced (default auto). A smaller one costs less and keeps fewer details; the points stay relative to the whole frame.
Which borders are traced (default outer).
Largest distance between a contour and its polygon, from 0 to 20 pixels of the frame (default 1.5): larger values give fewer points. At 0 only the points in line are removed.
input = a white disc of diameter 0.3 (in frame widths) on a black 1280 x 720 frame
simplify = 0, sizes = [552]
simplify = 0.5, sizes = [244]
simplify = 1.5, sizes = [32]
simplify = 5, sizes = [16]
simplify = 20, sizes = [8]
The same distance in % of the perimeter of each contour, from 0 to 10 % (default 0, off). The larger of the two distances applies, so that small and large shapes keep a similar number of points: the disc above gives 16, 8 and 4 points at 1, 5 and 10 %.
Smallest contour, from 0 to 10 % of the frame area (default 0.05 %): smaller ones are skipped.
Largest number of contours output, from 1 to 256 (default 16): the largest ones.
Largest number of points of all the contours together, from 16 to 16384 (default 16384, no limit). The contours are written, the largest first, while their points fit: the first one that does not fit ends the list, so a budget smaller than the largest contour gives no contour at all.
Picture of video out 1 (default video).
When ON (default), draws the contours on video out 1. The lines grow with the frame, so that they stay visible on a screen: 1 pixel wide up to 1280 x 720, 2 at 1920 x 1080 and 4 at 3840 x 2160.
Color of the drawn contours (default $FF00FF00, green). The holes are drawn in its complement, magenta for green.
Number of contours, from 0 to max contours.
Number of points of all the contours, from 0 to 16384: the length of x and y.
Array of the x of the points of all the contours, from 0 (left edge) to 1 (right edge), one contour after the other. The polygons pass through the centers of the border pixels, about half a pixel inside the regions.
Array of the y of the points, from 0 (top edge) to 1 (bottom edge), in the order of x.
Array of the index in x and y of the first point of each contour.
three contours of 4, 8 and 5 points
starts = [0, 4, 12]
sizes = [4, 8, 5]
points = 17
Array of the number of points of each contour.
Array of the area of each contour, as a fraction of the frame area, from 0 to 1. A white rectangle from 0.25 to 0.75 on a 1280 x 720 frame gives 0.2489, since its polygon lies half a pixel inside.
Array: 1 for the border of a hole, 0 for an outer border (always 0 in mode outer).
Array of the x of the center of the box of each contour, from 0 to 1.
Array of the y of the center of the box of each contour, from 0 to 1.
Array of the x of the points of the largest contour alone, for Video Draw Path with closed ON.
Array of the y of the points of the largest contour alone.
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.
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.
visible only in god mode, see setup-panel-tab-expert.
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).
Read-only, not saved. Private ID used to store and recall the values of this control in presets.
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.
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.
Read-only, not saved. Address of the object relative to the current patch, valid inside that patch only. See objects-address.
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.
version 7.0.250921
Edit All Pages