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
- Colour-keeping thresholdPixels the Comparator removes go black while every other pixel keeps its exact RGB.
- Test luminance, a channel or RGBTests luminance, one channel, or the average or maximum of RGB or RGBA against the threshold.
- Soften the edgeSoften feathers the boundary between kept and removed pixels.
- Alpha cut-outs for compositingRemoved pixels can also turn transparent, ready to composite over something else.
- Replace a Threshold TOPCreate a Threshold TOP with the alternatives shortcut held and ThresholdColor is offered in its place, wired into the same spot.
How to use it
- Create a Threshold TOP with the alternatives shortcut held. ThresholdColor is offered in its place and lands in that spot, wired the same way.
- 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.
- To keep the dark part of the picture, switch the Comparator to Greater.
- Choose what is tested with RGB: luminance, a single channel, the RGB or RGBA average, or the RGB or RGBA maximum.
- Raise Soften to feather the cut. Pixels near the threshold then fade between their colour and black; 0 is a hard cut.
- 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
- OP Create menu entryposition 0
Parameters
Custom
| Control | Type / default | What 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. |
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. |
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. |
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. |