# Get Pixel

This function block retrieves the color values of a specific pixel from an input image. It is useful for applications requiring color analysis or region-based processing.

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

`Image Any` This input accepts any image data from which you want to obtain pixel information.

`Point` This input specifies the (x, y) coordinates of the pixel whose color you wish to retrieve.

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

`(Blue, Green, Red)` This output provides the color value of the specified pixel in the format of BGR (Blue, Green, Red).

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

`Pixel Value Retrieval` Easily get the color values of any pixel in the input image.

`Coordinate Validation` Ensures that the specified coordinates are within the valid range of the image dimensions.

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

1. **Connect Image Input**: Link any image-producing function block to the `Image Any` input to provide the image data.
2. **Specify Pixel Position**: Input the x and y coordinates of the pixel you want to analyze in the `Point` input. Ensure that these coordinates are valid.
3. **Evaluate**: Run the block to retrieve the color value of the specified pixel.

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

Upon evaluation, the function block will provide the BGR values of the pixel specified by the position input.

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

<details>

<summary>Invalid Image Input</summary>

If you receive an error regarding invalid input type, ensure that the image input is correctly connected and is of appropriate type.

</details>

<details>

<summary>Invalid Position Error</summary>

When providing coordinates, ensure they are within the bounds of the image dimensions. The pixel position must be within the width and height of the image, or you may receive an invalid height or width error.

</details>

<details>

<summary>No Image Selected</summary>

If the output is not what you expect, verify that the image input is not empty (`None`). A successful connection should yield valid pixel data.

</details>
