# Get Pixel Mouse

This function block allows users to interactively retrieve the pixel value from any point in an image by clicking on it. It provides visualization features to emphasize the clicked point.

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

`Image Any` This input accepts an image from which pixel values will be retrieved.

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

`(Blue, Green, Red)` This output returns the color values of the clicked pixel in the order of Blue, Green, and Red.

`Point` This output provides the coordinates of the clicked pixel in the image.

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

`Displayed Image` The area where the input image is shown, and users can click to select a pixel.

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

`Interactive Pixel Retrieval` Users can click on the displayed image to get precise pixel values instantly.

`Visual Feedback` The clicked area is highlighted with colored circles to provide clear feedback about the selected pixel location.

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

1. **Connect an Image**: Link an image to the `Image Any` input of the function block.
2. **Click on the Image**: When the image is displayed, click on any point in the image to retrieve the pixel values.
3. **View Output**: The pixel color values and coordinates of the clicked location will be available as output.

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

When executed, this function block allows for real-time interaction, letting users select pixel values and receive immediate feedback via the outputs.

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

<details>

<summary>Color Accuracy</summary>

For accurate color representation, ensure the input image is in the correct color space and format (BGR or RGB) as expected by the block.

</details>

<details>

<summary>Frequent Use</summary>

If you're frequently using this block, connect dynamic input images (like from a camera or image stream) to facilitate quick pixel retrieval in real-time scenarios.

</details>

<details>

<summary>Connecting with Other Blocks</summary>

Consider combining this block with `Draw Point` or `Draw Rectangle` to visualize the areas you're interested in further.

</details>

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

<details>

<summary>No Pixel Value Retrieved</summary>

If you're having trouble retrieving a pixel value, ensure you've clicked on a valid point within the image boundaries. Points outside of the image will result in errors.

</details>

<details>

<summary>Image Not Displaying</summary>

Ensure that the input image is correctly connected. If there is no image, the input cannot be processed, and thus clicking won't yield any output.

</details>
