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

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

📤 Outputs

(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

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

🎨 Features

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

  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

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

Color Accuracy

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

Frequent Use

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.

Connecting with Other Blocks

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

🛠️ Troubleshooting

No Pixel Value Retrieved

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.

Image Not Displaying

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.

Last updated