# Arithmetic Filter

The Arithmetic Filter will perform simple mathematical operations on the image.

<div align="left"><figure><img src="/files/p6P13u6FG934AHi1nG2f" alt="The Arithmetic Filter tool."><figcaption><p>The Arithmetic Filter tool.</p></figcaption></figure></div>

**Filter Type**\
This contains the types of operations than can be performed on the image. Minimum will replace the pixel with the minimum value in the window size. Maximum will replace the pixel with the maximum value in the window size. Median and mean will replace the pixel with the median or mean value in the window size.

**Filter window size**\
This is the size of the window (in pixels) to use in the calculation of the new pixel value.


---

# 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/arithmetic-filter.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.
