# Pixel Math

The Pixel Math tool lets you do simple mathematical operations on each pixel. For more advanced operations, it may be better to use a Python script.

<div align="left"><figure><img src="/files/3S0qXuSlCuK28W8Cx3AU" alt="The Pixel Math tool."><figcaption><p>The Pixel Math tool.</p></figcaption></figure></div>

**Function**\
The mathematical operation that you want to apply to each pixel.

**Value**\
Most functions require a value to run. You can enter the value here. For example, if you selected Divide and entered a Value of 2.0, then each pixel in the image will be divided by 2.0.


---

# 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/pixel-math.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.
