---
title: "Threshold"
url: "https://help.maxon.net/ag/en-us/Content/html/Modifier_image_color_threshold.html"
section_path: "Modifiers > Image > Color > Threshold"
description: "Applies a threshold to the image: all pixels with smaller values to the threshold are converted to 0 and all values above the threshold to 1."
---

# Threshold

## Brief Description

Applies a threshold to the image: all pixels with smaller values to the threshold are converted to 0 and all values above the threshold to 1.

## Controls

| Parameter / Script Name | Type | Default | Function |
| --- | --- | --- | --- |
| `Enabled / enabled` | Boolean | On |  |
| `Red / process_red` | Boolean | On | Enable the red channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Green / process_green` | Boolean | On | Enable the green channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Blue / process_blue` | Boolean | On | Enable the blue channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Alpha / process_alpha` | Boolean | On | Enable the alpha channel in output. Otherwise if there's a source the content of the main source is returned instead, else 0 |
| `Mode / threshold_mode` | Choice | Luminance | Threshold mode<br>- *Luminance*: Convert to a luminance image and apply threshold<br>- *Mask*: Generate alpha mask from luminance threshold<br>- *RGBA*: Separate RGBA threshold |
| `Threshold / threshold_value` | Color | 0.15, 0.15, 0.15, 0.15 | Sets the threshold value. All channel values below these are converted to zero, and all values above are converted to one. |
| `Feather / threshold_feather` | Float 4D | 0.01, 0.01, 0.01, 0.01 | Sets the threshold softness. Higher values result in softer transitions between levels. |
| `Invert / invert` | Boolean | Off | Inver the threshold |
| `Unpremult / predivide` | Choice | If Needed | - *If Needed*: The image RGB channels are divided by the alpha channel before applying the effect if the image is marked as alpha-premultiplied<br>- *Never*: The image RGB channels are never divided by the alpha channel before applying the effect, even if the image is marked as alpha-premultiplied |
| `Mask / mask` | Image | - |  |
| `Mix / mix_with_source` | Float | 1 | Dissolves between the original image at 0 and the image with the effect applied at 1 |
