ANR Tools

ANR Black Match

Moves a comped element's blacks onto the plate's, and keeps them there when the plate's blacks drift with exposure, flicker or haze.

  • Comp
  • Comp & Depth pack
  • 3 inputs
  • 14 controls

Overview

Black Match moves the Foreground's black point onto the Background's. The black point is the level of the darkest few pixels of an image (Black Pick percent). The node adds the difference, Background black minus Foreground black, to the whole Foreground: one offset per channel, scaled by the Foreground's alpha, so soft edges get their share and nothing outside the element changes.

In Live mode both black points are measured on every frame, so the element follows a plate whose blacks drift: an exposure change, a flicker, haze rolling in. In Picked mode the node uses two fixed values, set by a Pick button on the frame you are on, or typed in.

Because it changes one value per channel rather than each pixel, no tracking is needed and the element's own contrast and detail stay as they are: only its floor moves. Use it for haze, flare, a lifted black level, or a CG render whose shadows are cleaner than the plate's.

Inputs

ForegroundBackgroundMaskBlack MatchOutput
  1. Foregroundrequired

    The element whose blacks move (a CG render, a patch, a keyed element), already placed over the plate. Its black point is measured where its alpha is above one half; an image without alpha counts everywhere.

  2. Backgroundrequired

    The plate the element sits on. Its black point is the target, measured over the whole frame or only behind the Foreground (Background Region).

  3. Maskoptional

    Limits where the offset is applied. Invert Mask applies it outside the mask instead.

Output. The Foreground with its blacks moved and its alpha unchanged, ready to merge over the plate. Output > Offset shows the offset itself as a flat colour instead.

Quick start

  1. Place and grade your element over the plate as usual.
  2. Add ANR Black Match. Connect the element to Foreground and the plate to Background.
  3. Leave Mode on Live: on every frame the element's darkest level now sits on the plate's.
  4. If the plate's darkest areas are far from the element (letterbox bars, a deep shadow on the other side of frame), set Background Region to Behind Foreground.
  5. If grain makes the result flicker, raise Live Smoothing to average the measurement over a few frames either side.
  6. For a fixed correction instead, go to a good frame and press Pick Blacks: Whole Background or Pick Blacks: Behind Foreground. The node keeps both black points and switches to Picked.
  7. Merge the result over the plate as before.

The panel

The node's panel as Nuke shows it, with the values of a new node. Click any control to see what it does; tabs and sections work as in Nuke.

ANR_Black_Match1
StatusLive: both black points measured on every frame, the Background's over the whole frame.
ModeLive
Background RegionWhole Background
Black Pick0.5
Live Smoothing0
Pick Blacks: Whole Background
Pick Blacks: Behind Foreground
Foreground Black0
Background Black0
ChannelsRGB
Strength1
OutputResult
Invert Mask
Mix1

All controls

ANR Black Match14 controls
StatusStatusstatus

What the node is doing, and what a Pick button found.

ModeMenubmMode

Live: measure both black points on every frame, so the Foreground follows a Background whose blacks drift (exposure, flicker, haze).
Picked: use the Foreground Black and Background Black below, set by a Pick button or typed.

Default: LiveOptions: Live Picked

Background RegionMenubmRegion

Where the Background's black point is measured: over the whole frame, or only where the Foreground is (its alpha).

Default: Whole BackgroundOptions: Whole Background Behind Foreground

Black PickSliderbmBlackPick

The black point is the level of the darkest this percent of pixels. 0 is the single darkest (a 2x2 average), which grain makes unreliable.

Default: 0.5

Live SmoothingSliderbmSmoothing

Live: average the measurement over this many frames either side, so grain does not make the blacks flicker. 0 is this frame only.

Default: 0

Pick Blacks: Whole BackgroundButtonbmPickWhole

On the frame you are on: measure the Foreground's black point and the whole Background's, keep them below, and switch to Picked.

Pick Blacks: Behind ForegroundButtonbmPickBehind

On the frame you are on: measure the Foreground's black point and the Background's where the Foreground is, keep them below, and switch to Picked.

Foreground BlackColourbmForegroundBlack

Picked: the Foreground's black point.

Default: 0

Background BlackColourbmBackgroundBlack

Picked: the Background's black point.

Default: 0

ChannelsMenubmChannels

RGB: each channel's black point matched, so a colour cast in the blacks carries across.
Luminance: one offset for all three channels.

Default: RGBOptions: RGB Luminance

StrengthSliderbmStrength

How much of the offset to apply.

Default: 1

OutputMenubmOutput

Result: the Foreground with its blacks moved.
Offset: the offset itself, as a flat colour.

Default: ResultOptions: Result Offset

Invert MaskCheckboxbmInvertMask

Apply outside the Mask instead.

Default: off

MixSliderbmMix

Blend the result over the unchanged Foreground.

Default: 1

Tips

  • Set Output to Offset to see the correction alone, as a flat colour.
  • Channels > RGB matches each channel, so a tinted haze in the plate's blacks carries over to the element. Luminance applies one offset to all three channels, which keeps the element's own colour balance.
  • Raise Black Pick when a few stray dark pixels decide the black point. At 0 the single darkest spot decides, which grain makes unreliable.
  • Strength scales the offset (above 1 it overshoots); Mix blends the result with the untouched Foreground.
  • After a Pick, Status shows the black points found and the frame they came from.
  • In Picked mode you can type Foreground Black and Background Black yourself, or key them.

Good to know

  • Whole Background measures everything in the frame: letterbox bars or a black border become the plate's black point. Use Behind Foreground for such plates, or crop the bars off the Background input.
  • In Live mode, a frame where the Foreground's alpha is nowhere above one half has nothing to measure and gets no offset. For an element that fades in or dissolves, use Picked.
  • Live Smoothing measures that many frames on each side for every frame it renders, so high values are slower.

Something unclear or missing? Write to [email protected].