Video Color Equalize

Stretches or equalizes the levels of the picture from its histogram: contrast-limited equalization, a contrast stretch by percentiles (auto levels), or a local equalization by tiles (CLAHE), smoothed over time to avoid pumping. Makes dark or flat camera feeds readable before a detection, without manual setting.

Example: mode clahe, tiles 8, clip limit 3, the local contrast restored; then the input, a flat feed made with Video Color Levels.

The correction is measured on every frame and smoothed by smooth: it settles in about 2 seconds on live video, and starts again when the patch is switched on, when mode, channels or tiles change, and when the frame size changes. The alpha is kept. A frame costs about 1.5 ms at 1920 x 1080 and 4.6 ms at 3840 x 2160 in equalize mode on the luma, 3.2 ms and 11.1 ms in clahe mode with 8 x 8 tiles.

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.

mode

How the levels are corrected (equalize by default).

  • equalize: global equalization: the levels are spread so that each one holds a similar share of the pixels, within clip limit. A dark night shot becomes readable, a little washed out.
  • auto levels: the level below which black clip % of the pixels lie becomes black, the level above which white clip % lie becomes white, and the levels between are stretched. A uniform frame is not changed.
  • clahe: the same equalization in each tile of a grid (contrast-limited adaptive histogram equalization), blended smoothly between the tiles: restores the local contrast. Always on the luma.

channels

Equalize and auto levels: where the correction is measured and applied (luma by default).

  • luma: one correction from the luma, applied to red, green and blue alike: the colors are kept.
  • rgb: one correction per channel, which also reduces a color cast.

amount

Share of the correction, from 0 to 1 (default 1): 0 gives the input unchanged.

clip limit

Equalize and clahe: highest bar of the histogram, in multiples of the average bar, from 1 to 16 (default 4): lower values give a gentler correction. On grey bars squeezed to the levels 76 to 153, clip limit 4 gives 69 to 169 and 16 gives 45 to 217, where auto levels gives 0 to 255.

black clip

Auto levels: share of the pixels that may become black, from 0 to 20 % (default 0.5).

white clip

Auto levels: share of the pixels that may become white, from 0 to 20 % (default 0.5).

tiles

Clahe: number of tiles across and down the picture, from 2 to 16 (default 8): more tiles give a more local contrast.

smooth

Smoothing of the correction from frame to frame, from 0 to 0.99 (default 0.8): 0 follows each frame, higher values avoid pumping but react more slowly.

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