# Minimum Images

This function block creates a new image by taking the pixel-wise minimum of two input images. It is useful when you want to keep the darker (lower-value) pixels from two images combined into a single result.

## 📥 Inputs <a href="#inputs" id="inputs"></a>

* `Image Any` First image (input socket)
* `Image Any` Second image (input socket)

Note: Both inputs must have the same resolution and number of channels.

## 📤 Outputs <a href="#outputs" id="outputs"></a>

* `Image Any` Resulting image where each pixel is the minimum of corresponding pixels from the two inputs (output socket)

## 🕹️ Controls <a href="#controls" id="controls"></a>

`No controls` The block runs its operation automatically once inputs are provided.

## 🎨 Features <a href="#features" id="features"></a>

* Produces a single image that keeps the lower pixel values from the two inputs.
* Works on color and grayscale images as long as both inputs share the same shape.
* Lightweight and deterministic — useful as a simple fusion or masking step.

## 📝 Usage Instructions <a href="#usage" id="usage"></a>

1. Provide two images of the same size and channel layout to the two inputs.
2. The block outputs a single image where each pixel is the minimum of the two inputs.
3. Use the resulting image for further analysis, visualization, or export.

## 📊 Evaluation <a href="#evaluation" id="evaluation"></a>

When evaluated, the block inspects corresponding pixels from the two provided images and outputs an image composed of the smaller pixel values at each location.

## 💡 Tips and Tricks <a href="#tips-and-tricks" id="tips-and-tricks"></a>

* If your images differ in size, use the `Image Resize` block before this block to match resolutions.
* To compare results visually, connect the output to the `Show Image` block.
* To save results for later review, send the output to `Image Logger` or `Image Write`.
* For combining brightness-focused operations, try using `Maximum Images` as a complementary step (keeps brighter pixels instead).
* If you need to merge several images, use `Batch Concatenation` or process pairs in a loop with flow-control blocks.

## 🛠️ Troubleshooting <a href="#troubleshooting" id="troubleshooting"></a>

* If you see an error or unexpected result, confirm both inputs have identical width, height, and number of channels.
* If colors look incorrect, ensure both images use the same color ordering (e.g., RGB vs BGR) and channel count.
* Use `Image Resize` or `Split Image` / `Merge Channels` to prepare inputs before using this block.


---

# 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://docs.augelab.com/function-blocks/blocks-reference/image-transformations/analysis/minimum-images.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.
