Video Color HSL Qualifier

Selects a range of hue, saturation and luminance with soft edges. Outputs the selection as a grey matte or as an alpha, shows it in color over a grey picture, or corrects the colors inside it only. For secondary grading (skin, sky) and to isolate a colored object cleanly before a detection such as Video Detection Blob.

Example: output highlight, hue center 25, hue width 50, hue softness 25, matte blur 3 (skin and the warm lanterns selected); then the same selection as output matte.

A pixel is selected by the product of three weights, for its hue, its saturation and its luma: each one is 1 inside its range and fades to 0 over its softness. Greys have no hue: they are selected only when hue width is 360. The defaults select skin and orange-red tones and show the matte. On compressed video, the matte can show the 8 x 8 color blocks of the codec where hues lie on a soft edge: a matte blur of 2 to 4 hides them. A frame costs 2.8 ms (matte) to 4.1 ms (corrected with blur) at 1920 x 1080, 9.5 to 15 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.

output

What the module outputs (matte by default).

  • matte: the selection as an opaque grey picture, white where selected.
  • highlight: the selected pixels in their colors over a grey version of the picture, to check the selection.
  • corrected: the picture with hue shift, saturation and luminance applied inside the selection only, mixed with the input by the matte. Without any correction it is the input itself (0.7 ms).
  • alpha: the input with the matte as its alpha, opaque where selected; red, green and blue are those of the input (not premultiplied). Used as the mask of Video Mix Alpha Mask, it shows the video of that module outside the selection, or inside it with invert on.

hue center

Center of the selected hues, from 0 to 360 degrees (default 20, orange-red): 0 red, 60 yellow, 120 green, 180 cyan, 240 blue, 300 magenta, 360 red again.

hue width

Width of the range of hues fully selected, from 0 to 360 degrees (default 50), centered on hue center. At 360 every hue is selected, greys included.

hue softness

Width of the soft edge on each side of the hue range, from 0 to 180 degrees (default 25): the selection fades smoothly to 0 over it, 0 gives a sharp edge. With the defaults, pure red is fully selected and pure yellow at about one third.

sat low

Lowest saturation fully selected, from 0 to 1 (default 0.15): 0 for greys, 1 for pure colors (the saturation of HSL). When it is above sat high, the two are swapped.

sat high

Highest saturation fully selected, from 0 to 1 (default 1).

sat softness

Width of the soft edge below sat low and above sat high, from 0 to 1 (default 0.1).

lum low

Lowest luma fully selected, from 0 to 1 (default 0.1): leaves out the darkest pixels. When it is above lum high, the two are swapped.

lum high

Highest luma fully selected, from 0 to 1 (default 0.95): leaves out the near whites.

lum softness

Width of the soft edge below lum low and above lum high, from 0 to 1 (default 0.05).

invert

When ON, everything outside the ranges is selected instead: the matte is reversed.

matte blur

Blur radius of the matte, from 0 to 32 pixels (default 0): soft and clean edges, the edge fading over about twice this width. 2 to 4 hide the blocks that compressed video leaves in the matte.

hue shift

Rotation of the hue inside the selection, output corrected only, from -180 to 180 degrees (default 0): 120 turns red into green.

saturation

Saturation about the luma inside the selection, output corrected only, from 0 to 2 (default 1): 0 makes the selection grey, 2 doubles its saturation.

luminance

Level offset inside the selection, output corrected only, from -1 to 1 (default 0): 1 adds 128 levels (of 255), -1 removes 128.

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