Docs Visual

ThresholdColor

A Threshold TOP that keeps the colour: pixels that pass the test come through in their original colour with a soft edge. An alternative for the Threshold TOP.

◧ Visual OP Create menu entry

Why use it

To pull the bright part out of a picture, say the lights in a night shot to feed a glow, the Threshold TOP gets you halfway. It answers a yes or no question per pixel and paints the answer white on black, so you multiply that matte back onto the source to get the colours back.

ThresholdColor asks the same question and keeps the pixel's own colour: the pixels the test removes go black, every other pixel keeps its exact RGB, and the edge between them can be soft. It is the usual first step for isolating the bright or dark part of a picture without losing its colour.

Features

How to use it

  1. Create a Threshold TOP with the alternatives shortcut held. ThresholdColor is offered in its place and lands in that spot, wired the same way.
  2. Set the test. The Comparator names the pixels that are removed, with the same meaning as on the Threshold TOP: with Less, every pixel whose value is below Threshold goes black and the rest keep their colour. Move Threshold to decide how much survives.
  3. To keep the dark part of the picture, switch the Comparator to Greater.
  4. Choose what is tested with RGB: luminance, a single channel, the RGB or RGBA average, or the RGB or RGBA maximum.
  5. Raise Soften to feather the cut. Pixels near the threshold then fade between their colour and black; 0 is a hard cut.
  6. Set Alpha for compositing. Same as RGB makes removed pixels transparent, so the result sits cleanly over another layer; One keeps the input's alpha untouched.

Inputs and output

  • in1 (TOP): the image to threshold.
  • out1 (TOP): the image with only the passing pixels, in colour.

Get it

Tick it on the install page and it installs with the rest of your setup and stays up to date.

Download ThresholdColor.tox Version 1.0.6, the tool on its own. It works in any project, and this copy never updates itself.

Where it appears

Parameters

Custom

ControlType / defaultWhat it does
ComparatorComparator menuLess The test that REMOVES a pixel (sets it to black): with Less, every pixel whose tested value is below Threshold goes black and the rest keep their colour. Same semantics as the Threshold TOP.
Options: Less, Greater, Less or Equal, Greater or Equal, Equal, Not Equal
RGBRgb menuLuminance Which value of each pixel is compared against Threshold: luminance, one channel, the RGB or RGBA average, or the RGB or RGBA maximum.
Options: Luminance, Red, Green, Blue, Alpha, RGB Average, RGBA Average, RGB Maximum and 1 more
ThresholdThreshold number0.5 The value each pixel is compared against with the Comparator.
AlphaAlpha menuSame as RGB Output alpha: Same as RGB multiplies the input alpha by the pass/fail matte (removed pixels become transparent); One keeps the input alpha untouched.
Options: Same as RGB, One
SoftenSoften number0 Width of the soft edge around the threshold; pixels near it fade between their colour and black instead of cutting hard. 0 is a hard cut.