# Image Resolution and Channel Value

This function block allows you to retrieve the resolution and channel information of an input image. It displays the width, height, and the number of channels contained in the image.

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

`Image Any` An image whose resolution and channel count you wish to determine.

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

`Width` The width of the image in pixels.

`Height` The height of the image in pixels.

`Channel` The number of channels in the image (e.g., 1 for grayscale, 3 for RGB).

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

`Resolution` A label displaying the current resolution and channel count of the input image.

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

`Dynamic Resolution Update` The block updates the displayed resolution and channel information in real time based on the input image.

`Support for Various Image Formats` Can handle both monochrome (grayscale) and color images effectively.

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

1. **Connect Input Image**: Link an image-producing function block to the `Image Any` input.
2. **Evaluate**: Execute the function block to receive the image width, height, and channel count.
3. **Review Results**: The `Resolution` label will show the current resolution in the format `<Width>x<Height> Channel:<Channel Count>`.

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

The function block processes the input image to extract and return the width, height, and channel count, updating the label with this information.

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

<details>

<summary>Combining with Other Blocks</summary>

Combine this block with `Resize` or `Image ROI Select` to adjust or focus on specific parts of the image before analyzing resolution.

</details>

<details>

<summary>Monitoring Native Image Size</summary>

Use this block to check the native size of images before performing operations that depend on specific dimensions, such as `Image Concatenate`.

</details>

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

<details>

<summary>No Image Data</summary>

If no image data is processed, ensure you have connected a valid image source to the input socket. The image should not be empty.

</details>

<details>

<summary>Unsupported Image Format</summary>

If an unsupported format is detected, make sure to convert the image into a compatible format supported by the function block, preferably RGB or Grayscale.

</details>
