# Threshold

The Threshold tool coverts an image to black and white based on a threshold value.

<div align="left"><figure><img src="/files/chRh3qdzxLZiTH60S6Z2" alt="The Threshold tool."><figcaption><p>The Threshold tool.</p></figcaption></figure></div>

**Threshold level**\
The level at which pixels are assigned to either black or white. You can use the Auto Level button to get an estimate based on the histogram of the image.

**Invert**\
Usually, values less than the Threshold Level are assigned to black, and values above are assigned to white. When this option is checked, this will be reversed, so that pixels below the Threshold Level become white and pixels above become black.

**Threshold RGB channels**\
Rather that produce a black and white image, this will produce a color image with a threshold applied to each color channel.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://astra-image.gitbook.io/astra-image-6.0/processing-tools/threshold.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
