![]()
Transforms a video flow into a grid of brightness values. It superimposes a grid that covers the whole image and in each cell of the grid it adds up the brightness of the pixels lighter than the threshold. It also calculates the barycenter of these values.
Can be used in motion detection: see the Video Luma Grid sub-patch of the library patch Tutorial/11-Video/tuto 05-Video Miscellaneous for an example.
Formerly Video Pixel Density. Its grid luma and array points luma outlets were called grid density and array points density: saved patches keep their wires, but object addresses that end with .grid-density and .array-points-density must now end with .grid-luma and .array-points-luma.
Video input flow(s).
Total time used for the calculation of the module.
Number of columns in the grid.
Number of rows in the grid.
Pixels that have intensity (lightness) lower than the threshold are ignored.
Array containing the brightness value of each cell. Its length is grid width x grid height and can be connected to a panel-matrix.
Barycenter of the cell values on X axis (width), from 0 to 1: the average of the cell centers weighted by their value. A uniform image above the threshold gives 0.5.
Barycenter of the cell values on Y axis (height), from 0 to 1: the average of the cell centers weighted by their value. A uniform image above the threshold gives 0.5.
Sum of the brightness of the pixels lighter than the threshold, a white pixel counting 1: the total of the cell values before contrasted and auto scale. It equals the number of these pixels only when they are all white.
List of X coordinates of the non-empty cells as an array.
List of Y coordinates of the non-empty cells as an array.
List of the values of the non-empty cells as an array, relative to the brightest cell (from 0 to 1).
When ON, always maintains the output grid luma array in the range [0..1].
Increases the contrast of the video input. Can improve the video detection accuracy.
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